summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Whyman <thev00d00@gentoo.org>2017-05-24 21:33:04 +0100
committerIan Whyman <thev00d00@gentoo.org>2017-05-24 21:33:04 +0100
commite3b92a8eb71ba2141b960c00558901266a0d7865 (patch)
treece4a7e9bd1b3e4fe9a8d57245b8145508a901c14 /dev-lang/duktape
parentkde-frameworks: Remove KDE Frameworks 5.33.0 (diff)
downloadgentoo-e3b92a8eb71ba2141b960c00558901266a0d7865.tar.gz
gentoo-e3b92a8eb71ba2141b960c00558901266a0d7865.tar.bz2
gentoo-e3b92a8eb71ba2141b960c00558901266a0d7865.zip
dev-lang/duktape: New package, ebuild by me
Thanks to Alexander F Rødseth <xyproto@archlinux.org> for the duktape.pc file. Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-lang/duktape')
-rw-r--r--dev-lang/duktape/Manifest1
-rw-r--r--dev-lang/duktape/duktape-2.1.0.ebuild34
-rw-r--r--dev-lang/duktape/files/duktape.pc10
-rw-r--r--dev-lang/duktape/metadata.xml14
4 files changed, 59 insertions, 0 deletions
diff --git a/dev-lang/duktape/Manifest b/dev-lang/duktape/Manifest
new file mode 100644
index 000000000000..16d0bf0fe304
--- /dev/null
+++ b/dev-lang/duktape/Manifest
@@ -0,0 +1 @@
+DIST duktape-2.1.0.tar.xz 1024608 SHA256 e02364cd72077e34e204b8375c8bd7c461eb13cb623c7dc1a74d253d84b1446b SHA512 9ec399a801a66f55c4c45a6011ea70fa86be302f07739325389a22189dd2026d52dc887a70d110496c9959c8680db8b878ffd2cc3c83e38269444e8726cfce5a WHIRLPOOL e7274339da65f90e952d0becea5c32f5b74a2091831b33ba8ad41745f66d9b6e34708afcde97dcb8483deab8624709149cd61026e1232914a4ef03083a255963
diff --git a/dev-lang/duktape/duktape-2.1.0.ebuild b/dev-lang/duktape/duktape-2.1.0.ebuild
new file mode 100644
index 000000000000..3ec8d5a73f3c
--- /dev/null
+++ b/dev-lang/duktape/duktape-2.1.0.ebuild
@@ -0,0 +1,34 @@
+# 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
+
+ sed -i "s#INSTALL_PREFIX=/usr/local#INSTALL_PREFIX=${D::-1}/usr#" \
+ Makefile.sharedlibrary || die "failed to sed makefile"
+
+ cp "${FILESDIR}/${PN}.pc" "${WORKDIR}" || die
+ sed -i "s#VERSION#${PV}#" "${WORKDIR}/${PN}.pc" || die
+
+ mv Makefile.sharedlibrary Makefile || die "faile to mv makefile"
+}
+
+src_install() {
+ dodir "/usr/lib"
+ dodir "/usr/include"
+ emake install
+}
diff --git a/dev-lang/duktape/files/duktape.pc b/dev-lang/duktape/files/duktape.pc
new file mode 100644
index 000000000000..3aa14bf929a1
--- /dev/null
+++ b/dev-lang/duktape/files/duktape.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: duktape
+Description: Embeddable Javascript engine
+Version: VERSION
+Libs: -L${libdir} -lduktape
+Cflags: -I${includedir}
diff --git a/dev-lang/duktape/metadata.xml b/dev-lang/duktape/metadata.xml
new file mode 100644
index 000000000000..2e39a897251e
--- /dev/null
+++ b/dev-lang/duktape/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>thev00d00@gentoo.org</email>
+ <name>Ian Whyman</name>
+ </maintainer>
+ <longdescription>
+ Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">svaarala/duktape</remote-id>
+ </upstream>
+</pkgmetadata>