mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 23:48:17 -07:00
dev-lang/duktape: Version bump
Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST duktape-2.1.0.tar.xz 1024608 SHA256 e02364cd72077e34e204b8375c8bd7c461eb13cb623c7dc1a74d253d84b1446b SHA512 9ec399a801a66f55c4c45a6011ea70fa86be302f07739325389a22189dd2026d52dc887a70d110496c9959c8680db8b878ffd2cc3c83e38269444e8726cfce5a WHIRLPOOL e7274339da65f90e952d0becea5c32f5b74a2091831b33ba8ad41745f66d9b6e34708afcde97dcb8483deab8624709149cd61026e1232914a4ef03083a255963
|
||||
DIST duktape-2.1.1.tar.xz 1024568 SHA256 6a58e5e8d8c7e3e638cd6e5b91be3bcaa4c89778d3892054a36052ae043dd11e SHA512 51e5146b083b460f005ce93e369aebf9981e33a3e888f3e91fd175b7f018a93981e8f6f9ff9bbd865ad30f1424fcb21c18334450050909cda5f74caf11b25479 WHIRLPOOL 9d15f1b8884d179873e8ea7fb69c93bf71875e3a776b9d83f568fb1418fc46ad44ccea0597f38046c9ce1b4db0a7d60a8a2eefff08f9a25a5827d3de7cf7251a
|
||||
|
||||
43
dev-lang/duktape/duktape-2.1.1.ebuild
Normal file
43
dev-lang/duktape/duktape-2.1.1.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Embeddable Javascript engine"
|
||||
HOMEPAGE="http://duktape.org"
|
||||
SRC_URI="http://duktape.org/${P}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
# Set install path
|
||||
sed -i "s#INSTALL_PREFIX=/usr/local#INSTALL_PREFIX=${D::-1}/usr#" \
|
||||
Makefile.sharedlibrary || die "failed to set install path"
|
||||
|
||||
# Edit pkgconfig
|
||||
sed "s#VERSION#${PV}#" "${FILESDIR}/${PN}.pc" > "${S}/${PN}.pc" || die
|
||||
sed -i "s#LIBDIR#$(get_libdir)#" "${S}/${PN}.pc" || die
|
||||
|
||||
# Set lib folder
|
||||
sed -i "s#(INSTALL_PREFIX)/lib#(INSTALL_PREFIX)/$(get_libdir)#" \
|
||||
Makefile.sharedlibrary || die
|
||||
|
||||
mv Makefile.sharedlibrary Makefile || die "failed to rename makefile"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/$(get_libdir)
|
||||
dodir /usr/include
|
||||
emake install
|
||||
|
||||
insinto /usr/$(get_libdir)/pkgconfig/
|
||||
doins "${S}/${PN}.pc"
|
||||
}
|
||||
Reference in New Issue
Block a user