diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-20 03:52:46 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-20 03:52:46 +0100 |
commit | 9346d46d1a9e0399ca3a4d3eb40689d0daa58ebc (patch) | |
tree | 39d9d519350a5b2361fb1597751a1c82fc047b89 /dev-lang/rapydscript-ng | |
parent | 67efaff61522aeb024152ab6cddf7c40ffacb530 (diff) |
gentoo auto-resync : 20:10:2023 - 03:52:46
Diffstat (limited to 'dev-lang/rapydscript-ng')
-rw-r--r-- | dev-lang/rapydscript-ng/Manifest | 5 | ||||
-rw-r--r-- | dev-lang/rapydscript-ng/metadata.xml | 15 | ||||
-rw-r--r-- | dev-lang/rapydscript-ng/rapydscript-ng-0.7.22.ebuild | 75 | ||||
-rw-r--r-- | dev-lang/rapydscript-ng/rapydscript-ng-9999.ebuild | 75 |
4 files changed, 170 insertions, 0 deletions
diff --git a/dev-lang/rapydscript-ng/Manifest b/dev-lang/rapydscript-ng/Manifest new file mode 100644 index 000000000000..6472d8b42b2a --- /dev/null +++ b/dev-lang/rapydscript-ng/Manifest @@ -0,0 +1,5 @@ +DIST rapydscript-ng-0.7.22.tar.gz 437745 BLAKE2B 5720a24743b0276a179a8c5da4c0f890f7c91a07968df7ac1e9c3a830d003fb4da7cfb124410428afe20cbf98429d6985750c129ab9ad01316a97d92793385ec SHA512 301d83c3a6715d2ae0e45bf344c48070273f160c3dccd3396788be360768c5df228b12f58f2eca3daea499bf6994a6cd0afc14c5cc590855d585d39753e06e00 +DIST rapydscript-ng-node_modules-0.7.22.tar.xz 2340024 BLAKE2B 7b4683ef86f639b7898d4120414844b7da15c86bcaee569be12dea29581d2aa594db713bd3ee8837bb05ffdea9f831b12302643c31eded3abaf3f88c59ac17e1 SHA512 8b26ffc4748b99a698aaa93e7a8e858b0071613596228ce880ff24889bc66171b4030dc568f0d60e52846ecb3b530c1f3adafd1fd2377ace726ee91f0a2a3c41 +EBUILD rapydscript-ng-0.7.22.ebuild 1816 BLAKE2B 29d8d383a0931619cfc50b9e0210e2498d3257290e11fd8b1117b38234115edd81e14f6ffba89e1f986a9f5c002fb253dbe5c278625794eba90ad6e9e511d5e6 SHA512 75342caf14e4a9b749c08adc12dc40999849926fde3e20df3953e94ebc149617316fdbe2491c6e0f1e5c0772fed3e78755b6daa0a114c1974f51d19bcad9ba1e +EBUILD rapydscript-ng-9999.ebuild 1816 BLAKE2B 29d8d383a0931619cfc50b9e0210e2498d3257290e11fd8b1117b38234115edd81e14f6ffba89e1f986a9f5c002fb253dbe5c278625794eba90ad6e9e511d5e6 SHA512 75342caf14e4a9b749c08adc12dc40999849926fde3e20df3953e94ebc149617316fdbe2491c6e0f1e5c0772fed3e78755b6daa0a114c1974f51d19bcad9ba1e +MISC metadata.xml 487 BLAKE2B 3be2d649691d5e79745a936501c448f3ff0d703c7cd5dd5af4ed6789e91e7b06e0b477bbd0387ad95afba6e3b75bcfac6d335938c75d71dc64693dd44328e33a SHA512 e5b6c74cc7eb0f03cd53eee77507abb248f3b10f417fc6819c6c782b6c08896d6cf43ed39abb6b67155ee8935574c8718a2f68eeb3fdde8eb4266e5d5a5ffa7a diff --git a/dev-lang/rapydscript-ng/metadata.xml b/dev-lang/rapydscript-ng/metadata.xml new file mode 100644 index 000000000000..ff2fd6660875 --- /dev/null +++ b/dev-lang/rapydscript-ng/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>eschwartz93@gmail.com</email> + <name>Eli Schwartz</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">kovidgoyal/rapydscript-ng</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-lang/rapydscript-ng/rapydscript-ng-0.7.22.ebuild b/dev-lang/rapydscript-ng/rapydscript-ng-0.7.22.ebuild new file mode 100644 index 000000000000..467e239b5828 --- /dev/null +++ b/dev-lang/rapydscript-ng/rapydscript-ng-0.7.22.ebuild @@ -0,0 +1,75 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/kovidgoyal/rapydscript-ng" + # this is nodejs software, so possibly unfixable. I am sorry. + # Instead, we will have to generate this with the live ebuild and upload assets + # using EGIT_OVERRIDE_COMMIT for the tagged version we need. + BDEPEND="app-arch/libarchive" + + inherit git-r3 +else + SRC_URI=" + https://github.com/kovidgoyal/rapydscript-ng/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/rapydscript-ng-node_modules-${PV}.tar.xz + " + KEYWORDS="~amd64" +fi + +inherit edo + +DESCRIPTION="Pythonic JavaScript that doesn't suck" +HOMEPAGE="https://github.com/kovidgoyal/rapydscript-ng" + +LICENSE="BSD" +SLOT="0" + +BDEPEND+=" net-libs/nodejs" +RDEPEND="net-libs/nodejs" + +maint_pkg_create() { + cd "${S}" || die + + edo npm install --omit=optional + + local ver=$(git describe) + ver=${ver#v} + local tar="${T}/rapydscript-ng-node_modules-${ver}.tar.xz" + + bsdtar -s "#\(.*\)#${PN}-node_modules-${ver}/~#S" -caf "${tar}" package-lock.json node_modules/ || die + einfo "Packaged tar now available:" + einfo "$(du -b "${tar}")" +} + +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + maint_pkg_create + else + unpack ${A} + cp -r "${WORKDIR}"/${PN}-node_modules-${PV}/{node_modules,package-lock.json} "${S}" || die + fi +} + +src_compile() { + edo bin/rapydscript self --complete + rm -r release/ || die + mv dev/ release/ || die +} + +src_test() { + edo bin/rapydscript test +} + +src_install() { + local modulesdir=/usr/$(get_libdir)/node_modules/rapydscript-ng + + insinto "${modulesdir}" + doins -r * + + fperms +x "${modulesdir}"/bin/rapydscript + dosym -r "${modulesdir}"/bin/rapydscript /usr/bin/rapydscript +} diff --git a/dev-lang/rapydscript-ng/rapydscript-ng-9999.ebuild b/dev-lang/rapydscript-ng/rapydscript-ng-9999.ebuild new file mode 100644 index 000000000000..467e239b5828 --- /dev/null +++ b/dev-lang/rapydscript-ng/rapydscript-ng-9999.ebuild @@ -0,0 +1,75 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/kovidgoyal/rapydscript-ng" + # this is nodejs software, so possibly unfixable. I am sorry. + # Instead, we will have to generate this with the live ebuild and upload assets + # using EGIT_OVERRIDE_COMMIT for the tagged version we need. + BDEPEND="app-arch/libarchive" + + inherit git-r3 +else + SRC_URI=" + https://github.com/kovidgoyal/rapydscript-ng/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/rapydscript-ng-node_modules-${PV}.tar.xz + " + KEYWORDS="~amd64" +fi + +inherit edo + +DESCRIPTION="Pythonic JavaScript that doesn't suck" +HOMEPAGE="https://github.com/kovidgoyal/rapydscript-ng" + +LICENSE="BSD" +SLOT="0" + +BDEPEND+=" net-libs/nodejs" +RDEPEND="net-libs/nodejs" + +maint_pkg_create() { + cd "${S}" || die + + edo npm install --omit=optional + + local ver=$(git describe) + ver=${ver#v} + local tar="${T}/rapydscript-ng-node_modules-${ver}.tar.xz" + + bsdtar -s "#\(.*\)#${PN}-node_modules-${ver}/~#S" -caf "${tar}" package-lock.json node_modules/ || die + einfo "Packaged tar now available:" + einfo "$(du -b "${tar}")" +} + +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + maint_pkg_create + else + unpack ${A} + cp -r "${WORKDIR}"/${PN}-node_modules-${PV}/{node_modules,package-lock.json} "${S}" || die + fi +} + +src_compile() { + edo bin/rapydscript self --complete + rm -r release/ || die + mv dev/ release/ || die +} + +src_test() { + edo bin/rapydscript test +} + +src_install() { + local modulesdir=/usr/$(get_libdir)/node_modules/rapydscript-ng + + insinto "${modulesdir}" + doins -r * + + fperms +x "${modulesdir}"/bin/rapydscript + dosym -r "${modulesdir}"/bin/rapydscript /usr/bin/rapydscript +} |