summaryrefslogtreecommitdiff
path: root/dev-build/tup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-17 20:06:58 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-17 20:06:58 +0000
commit08c5e4df7a4b66ba8dbb827ca2e3a973d4f19ab0 (patch)
tree347af25df153363454776e1fe95fc4e8100a7e7d /dev-build/tup
parentfc6e577018dec28e18904f9ad5c1417976e3c728 (diff)
gentoo auto-resync : 17:01:2024 - 20:06:58
Diffstat (limited to 'dev-build/tup')
-rw-r--r--dev-build/tup/Manifest6
-rw-r--r--dev-build/tup/metadata.xml8
-rw-r--r--dev-build/tup/tup-0.7.10.ebuild102
-rw-r--r--dev-build/tup/tup-0.7.11.ebuild117
-rw-r--r--dev-build/tup/tup-9999.ebuild101
5 files changed, 334 insertions, 0 deletions
diff --git a/dev-build/tup/Manifest b/dev-build/tup/Manifest
new file mode 100644
index 000000000000..0b3535746170
--- /dev/null
+++ b/dev-build/tup/Manifest
@@ -0,0 +1,6 @@
+DIST tup-0.7.10.tar.gz 4651047 BLAKE2B 067730f8fa202dfff7fbf566fef609038839a47ddb9f9029155b4eee428eae9fd088bab1c5373155de0b445700cc8b7cbe0c40dd3d9665504c9e37de24b01ed4 SHA512 65009e57be2ae85187779f5b9317f2850b007bfbfef92c7191648ba4e927a5709a0d48e8a1ad8b8480e7340568f4b207e8d0e8874f896bbbb65983e80f8b5c24
+DIST tup-0.7.11.tar.gz 4683309 BLAKE2B 2914339499e80cf52318aaf9d682ac482f17c2acf6eeebb2dac84776cd4407fc23fbb1c61e5e7634ce6f18563e24ff524b284cbe8b46306f82870fdb32166efb SHA512 b923366bb15ce6e5be027b6b3e98b1029cd7dbe6ce2a8dd37a8e4b71521c8ff6d95d88fe296f5ca4719bbc048c6aaa5eacdd8cac1410d46df54ac674d6fd8aee
+EBUILD tup-0.7.10.ebuild 2662 BLAKE2B 2bc9091cb743ab36924b4b5df751eaada0281e78d616f6c6661b060aaad3f630ce3733dadd10feeae2777c1e6a2db02e945f259965680bf67167ff3f7c997473 SHA512 30d6b8d70583f30adfcd4c54c4b07e237c86cca6f532e8debb8314ff357b817856aab7cca3f70c4432cfeb74d7d5ac8a8998d6b96813ac2dc53f9c14589e8dd7
+EBUILD tup-0.7.11.ebuild 3033 BLAKE2B 3c610daa3adb7a664bc66f781640ab3df7998f9d256afea20cee167215fa3b1b5fe8c48e72027a938ccd0bd8b3c7dd4db80c0f66a1a6558fdfa4c2b72264c489 SHA512 4e7ea62b47ded5d391e57769b7cb8780fd4d4d1bdf95a93f1876b05cb1114b5249fc2b3934f7a688bbd8dec7a125072f583644e2a56dd3566927564404ef3c98
+EBUILD tup-9999.ebuild 2447 BLAKE2B d35cd99bf084a28e14b2622f8c90c790471cc1654012f6a50ef0ebde9c066b300b76842b319fdc4d7c60311a98f2fecb5aa8205eb8220ce22ed4ca724136909c SHA512 5e3b6f9e0f082fa00ebd2b079ccca4087865892a97c6206ed6082394056e57ffea7d759439bed8de9ba41209a00f5e675332af193c8511fd577aa66da0a95c97
+MISC metadata.xml 243 BLAKE2B b87b031fb5a945f70afbd431c56a3290c4cb0926e55d9a7bb10040806d40d494688e7c532131e6b47d9fc79237c08b41ea60fb14eb0e84b295788a5cb7b69bb5 SHA512 7f3a04c70b392b12fe3efb4c2fc0d75f7e9dd1e3b74568862913c678843e52883584bc892e8059b21c94bb515831923259a086f99481adb02cee02d852ae34ed
diff --git a/dev-build/tup/metadata.xml b/dev-build/tup/metadata.xml
new file mode 100644
index 000000000000..1648a2ba9c49
--- /dev/null
+++ b/dev-build/tup/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">gittup/tup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-build/tup/tup-0.7.10.ebuild b/dev-build/tup/tup-0.7.10.ebuild
new file mode 100644
index 000000000000..536d341d02b8
--- /dev/null
+++ b/dev-build/tup/tup-0.7.10.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="File-based build system"
+HOMEPAGE="https://gittup.org/tup/"
+# Tup itself is GPLv2, but it bundles differently licensed software:
+# - lua: MIT
+# - sqlite (unused in this ebuild): public domain
+# - inih: 3-clause BSD
+# - red-black tree implementation: 2-clause BSD
+# - queue implementation: 3-clause BSD
+LICENSE="GPL-2 MIT public-domain BSD BSD-2"
+SLOT="0"
+
+if [[ "${PV}" == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/gittup/tup.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/gittup/tup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64"
+fi
+
+DEPEND="
+ dev-db/sqlite:=
+ dev-libs/libpcre:=
+ sys-fs/fuse:3=
+"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
+WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
+WARNING_NAMESPACES="CONFIG_NAMESPACES is required for tup to work as intended (workaround: set TUP_NO_NAMESPACING env var when running tup)"
+
+src_prepare() {
+ # Use our toolchain
+ sed -i Tuprules.tup \
+ -e "s|CC = gcc|CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}|" \
+ -e "s|ar crs|$(tc-getAR) crs|" || die
+
+ if [[ ${PV} != 9999 ]]; then
+ # Avoid invoking `git` to find version, use ours
+ sed -i src/tup/link.sh \
+ -e 's|`git describe`|v'"${PV}|" || die
+ fi
+
+ echo "CONFIG_TUP_USE_SYSTEM_SQLITE=y" >> tup.config
+
+ default
+}
+
+src_compile() {
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+ ./bootstrap-nofuse.sh || die
+ unset TUP_NO_NAMESPACING
+}
+
+src_install() {
+ dobin tup
+ dolib.a libtup_client.a
+ doheader tup_client.h
+ doman tup.1
+}
+
+src_test() {
+ [[ -e /dev/fuse ]] || die "/dev/fuse is required for tests to work"
+ # tup uses fuse when tracking dependencies.
+ addwrite /dev/fuse
+
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+
+ # Skip tests which require namespacing or root privileges.
+ pushd test || die
+ rm -v ./*full-deps*.sh \
+ t2150-lua-tupdefault.sh \
+ t2172-lua-relativedir.sh \
+ t2187-tupdefault.sh \
+ t2197-tupdefault-ghost.sh \
+ t4069-gcc-coverage.sh \
+ t4072-proc-self.sh \
+ t4074-getpwd.sh \
+ t4131-proc-self-exe.sh \
+ t4132-proc-meminfo.sh \
+ t4171-dev-null.sh \
+ t4200-ccache.sh \
+ t4201-ccache2.sh \
+ t4202-clang.sh \
+ t5083-symlink-fullpath.sh \
+ t5084-symlink-fullpath2.sh \
+ t5103-python-sh.sh || die
+ ./test.sh || die
+ popd || die
+
+ unset TUP_NO_NAMESPACING
+}
diff --git a/dev-build/tup/tup-0.7.11.ebuild b/dev-build/tup/tup-0.7.11.ebuild
new file mode 100644
index 000000000000..773da29d997b
--- /dev/null
+++ b/dev-build/tup/tup-0.7.11.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="File-based build system"
+HOMEPAGE="https://gittup.org/tup/ https://github.com/gittup/tup"
+# Tup itself is GPLv2, but it bundles differently licensed software:
+# - lua: MIT
+# - sqlite (unused in this ebuild): public domain
+# - inih: 3-clause BSD
+# - red-black tree implementation: 2-clause BSD
+# - queue implementation: 3-clause BSD
+LICENSE="GPL-2 MIT public-domain BSD BSD-2"
+SLOT="0"
+
+if [[ "${PV}" == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/gittup/tup.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/gittup/tup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64"
+fi
+
+DEPEND="
+ dev-db/sqlite
+ dev-libs/libpcre
+ sys-fs/fuse:3
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
+WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
+WARNING_NAMESPACES="CONFIG_NAMESPACES is required for tup to work as intended (workaround: set TUP_NO_NAMESPACING env var when running tup)"
+
+src_prepare() {
+ # Use our toolchain
+ sed -i Tuprules.tup \
+ -e "s|CC = gcc|CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}|" \
+ -e "s|ar crs|$(tc-getAR) crs|" || die
+
+ if [[ ${PV} != 9999 ]]; then
+ # Avoid invoking `git` to find version, use ours
+ sed -i src/tup/link.sh \
+ -e 's|`git describe`|v'"${PV}|" || die
+ fi
+
+ echo "CONFIG_TUP_USE_SYSTEM_SQLITE=y" >> tup.config
+
+ default
+}
+
+src_compile() {
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+ ./bootstrap-nofuse.sh || die
+ unset TUP_NO_NAMESPACING
+}
+
+src_install() {
+ dobin tup
+ dolib.a libtup_client.a
+ doheader tup_client.h
+ doman tup.1
+}
+
+src_test() {
+ [[ -e /dev/fuse ]] || die "/dev/fuse is required for tests to work"
+ # tup uses fuse when tracking dependencies.
+ addwrite /dev/fuse
+
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+
+ # Skip tests which require namespacing or root privileges.
+ pushd test || die
+ rm -v t2150-lua-tupdefault.sh \
+ t2172-lua-relativedir.sh \
+ t2187-tupdefault.sh \
+ t2197-tupdefault-ghost.sh \
+ t2220-lua-open-external.sh \
+ t4062-full-deps.sh \
+ t4063-full-deps2.sh \
+ t4064-full-deps3.sh \
+ t4065-full-deps-proc.sh \
+ t4067-full-deps5.sh \
+ t4069-gcc-coverage.sh \
+ t4072-proc-self.sh \
+ t4074-getpwd.sh \
+ t4131-proc-self-exe.sh \
+ t4132-proc-meminfo.sh \
+ t4171-dev-null.sh \
+ t4200-ccache.sh \
+ t4201-ccache2.sh \
+ t4202-clang.sh \
+ t4205-full-deps6.sh \
+ t4206-full-deps7.sh \
+ t4207-full-deps8.sh \
+ t4208-full-deps-external.sh \
+ t4209-full-deps-external2.sh \
+ t4210-full-deps-getaddrinfo.sh \
+ t4215-full-deps-get-nprocs.sh \
+ t5083-symlink-fullpath.sh \
+ t5084-symlink-fullpath2.sh \
+ t5103-python-sh.sh \
+ t7048-full-deps.sh \
+ t8105-variant-parse-progress.sh || die
+ ./test.sh || die
+ popd || die
+
+ unset TUP_NO_NAMESPACING
+}
diff --git a/dev-build/tup/tup-9999.ebuild b/dev-build/tup/tup-9999.ebuild
new file mode 100644
index 000000000000..e750b58f90de
--- /dev/null
+++ b/dev-build/tup/tup-9999.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="File-based build system"
+HOMEPAGE="https://gittup.org/tup/"
+# Tup itself is GPLv2, but it bundles differently licensed software:
+# - lua: MIT
+# - sqlite (unused in this ebuild): public domain
+# - inih: 3-clause BSD
+# - red-black tree implementation: 2-clause BSD
+# - queue implementation: 3-clause BSD
+LICENSE="GPL-2 MIT public-domain BSD BSD-2"
+SLOT="0"
+
+if [[ "${PV}" == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/gittup/tup.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/gittup/tup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+DEPEND="
+ dev-db/sqlite:=
+ dev-libs/libpcre:=
+ sys-fs/fuse:=
+"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
+WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
+WARNING_NAMESPACES="CONFIG_NAMESPACES is required for tup to work as intended (workaround: set TUP_NO_NAMESPACING env var when running tup)"
+
+src_prepare() {
+ # Use our toolchain
+ sed -i Tuprules.tup \
+ -e "s:CC = gcc:CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}:" \
+ -e "s:ar crs:$(tc-getAR) crs:"
+
+ if [[ ${PV} != 9999 ]]; then
+ # Avoid invoking `git` to find version, use ours
+ sed -i src/tup/link.sh \
+ -e 's;`git describe`;v'"${PV};"
+ fi
+
+ default
+}
+
+src_configure() {
+ echo "CONFIG_TUP_USE_SYSTEM_SQLITE=y" >> tup.config
+}
+
+src_compile() {
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+ ./bootstrap-nofuse.sh || die
+ unset TUP_NO_NAMESPACING
+}
+
+src_install() {
+ dobin tup
+ dolib.a libtup_client.a
+ doheader tup_client.h
+ doman tup.1
+}
+
+src_test() {
+ [[ -e /dev/fuse ]] || die "/dev/fuse is required for tests to work"
+ # tup uses fuse when tracking dependencies.
+ addwrite /dev/fuse
+
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+
+ # Skip tests which require namespacing or root privileges.
+ pushd test || die
+ rm -v ./*full-deps*.sh
+ SKIPPED_TESTS=(
+ t4069-gcc-coverage.sh
+ t4072-proc-self.sh
+ t4074-getpwd.sh
+ t4131-proc-self-exe.sh
+ t4132-proc-meminfo.sh
+ t4171-dev-null.sh
+ t4202-clang.sh
+ t4200-ccache.sh
+ t5083-symlink-fullpath.sh
+ t5084-symlink-fullpath2.sh
+ )
+ rm ${SKIPPED_TESTS[@]} || die
+ ./test.sh || die
+ popd || die
+
+ unset TUP_NO_NAMESPACING
+}