commit: bf7e5e416239d18bfe6c5223a82884b6c136dd1f Author: Theo Anderson <telans <AT> posteo <DOT> de> AuthorDate: Tue Dec 15 09:40:10 2020 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Tue Dec 15 09:40:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bf7e5e41
dev-lang/wren: bump to 0.3.0 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Theo Anderson <telans <AT> posteo.de> dev-lang/wren/Manifest | 2 ++ dev-lang/wren/wren-0.3.0.ebuild | 65 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/dev-lang/wren/Manifest b/dev-lang/wren/Manifest index 782d2d9f..b9f78a9a 100644 --- a/dev-lang/wren/Manifest +++ b/dev-lang/wren/Manifest @@ -1 +1,3 @@ DIST wren-0.2.0.tar.gz 1791488 BLAKE2B a2f48e9b115ea89cf25af1fe8cefa3c26639ce06f89796df4f5eb744b2382b44f83d6285eedfa9cb5681342cc8ebca535bae586445225622c8ebdb30c7088975 SHA512 67912df14d8afa16a4e50fa67e232870e08eb392601f7b1633bcfb242f2de7624b9a3501df9e1ae40fb62646db57ff6553733ddb3015b6b5086999dadf7d2da2 +DIST wren-0.3.0.tar.gz 1228834 BLAKE2B ff809008646970815b0f3ef3457d12ad1e6ac431b32f059035b15f1ad9f46247510a28d34d789472c6dc9fe1caeee71e09bd5484fe21dfdb356d8fcfc206a812 SHA512 8c05b69539b8a51289efecbd998bf1d054ff90944b949720b512b7a1202ace9ba56779f2e995097571459da6d8447f925f54c8170a3f6edeeaac6df265ffdc4c +DIST wren-cli-0.3.0.tar.gz 509755 BLAKE2B 13034a6aeaa7ef2a20163714233c4750f1ab88fb232758c26bd35f8616c239936b1f80bf95c95da4d2ad2436a7813f1763002637030473a9abed8d0a4532d61d SHA512 8d4894c5e669c0c03bfb546c37cb9e917990a6cb6c59d399cbb5a03a9c9de7954bc203646ac776643c73ab9cb6e331868707d82e7c2ebd8625a9d80f4aea4f20 diff --git a/dev-lang/wren/wren-0.3.0.ebuild b/dev-lang/wren/wren-0.3.0.ebuild new file mode 100644 index 00000000..5240bf6e --- /dev/null +++ b/dev-lang/wren/wren-0.3.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="The Wren Programming Language" +HOMEPAGE="https://wren.io/" +SRC_URI=" + https://github.com/wren-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/wren-lang/${PN}-cli/archive/${PV}.tar.gz -> ${PN}-cli-${PV}.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="dev-libs/libuv" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + # Don't pre-strip + sed -i 's/-s$//' projects/make/wren_shared.make || die + sed -i 's/-s$//' "${WORKDIR}"/wren-cli-${PV}/projects/make/wren_cli.make || die + + cat <<EOF > ${PN}.pc +prefix="${EPREFIX}/usr" +libdir="\${prefix}/$(get_libdir)" +includedir="\${prefix}/include" + +Name: ${PN} +Description: ${DESCRIPTION} +URL: ${HOMEPAGE} +Version: ${PV} +Libs: "-L\${libdir}\" -l${PN} +Cflags: "-I\${includedir}" +EOF +} + +src_compile() { + cd projects/make + emake + cd "${WORKDIR}/wren-cli-${PV}/projects/make" + emake +} + +python_test() { + ${EPYTHON} util/test.py || die +} + +src_install() { + newbin "${WORKDIR}"/wren-cli-${PV}/bin/wren_cli wren + dolib.so lib/libwren.so + doheader src/include/wren.h + doheader src/include/wren.hpp + + insinto /usr/$(get_libdir)/pkgconfig + doins ${PN}.pc + einstalldocs +}