diff --git a/sdk_container/src/third_party/portage-stable/acct-group/polkitd/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/polkitd/metadata.xml new file mode 100644 index 0000000000..d4390c2eb5 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/polkitd/metadata.xml @@ -0,0 +1,7 @@ + + + + + freedesktop-bugs@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/polkitd/polkitd-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/polkitd/polkitd-0-r1.ebuild new file mode 100644 index 0000000000..7e7baeaeb4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/polkitd/polkitd-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=102 diff --git a/sdk_container/src/third_party/portage-stable/acct-user/polkitd/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/polkitd/metadata.xml new file mode 100644 index 0000000000..d4390c2eb5 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/polkitd/metadata.xml @@ -0,0 +1,7 @@ + + + + + freedesktop-bugs@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-user/polkitd/polkitd-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/polkitd/polkitd-0-r1.ebuild new file mode 100644 index 0000000000..2d441cd426 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/polkitd/polkitd-0-r1.ebuild @@ -0,0 +1,12 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +ACCT_USER_ID=102 +ACCT_USER_GROUPS=( polkitd ) +ACCT_USER_HOME=/var/lib/polkit-1 + +acct-user_add_deps diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/duktape/Manifest b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/Manifest new file mode 100644 index 0000000000..36de0ea070 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/Manifest @@ -0,0 +1 @@ +DIST duktape-2.6.0.tar.xz 1035160 BLAKE2B 98155e1bf7e76aab37f5ccdb951d9d456df3d984ebed5058d8931e25317ffd94b4d95f08e102eb6eb2fa36ab6d2d60be6072b4101b7754e1c1440f7d6fb2c91b SHA512 d72a2aaa05391fa243861aca6ca6082f91a08b9c5d60c7b246d35d7161532b0048bb67bd8fec7996c700ee317ac2bb52e528582682e5425b0431757d8b1c5be4 diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/duktape/duktape-2.6.0.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/duktape-2.6.0.ebuild new file mode 100644 index 0000000000..2106a96a82 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/duktape-2.6.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Embeddable Javascript engine" +HOMEPAGE="https://duktape.org" +SRC_URI="https://duktape.org/${P}.tar.xz" + +LICENSE="MIT" +# Upstream don't maintain binary compatibility +# https://github.com/svaarala/duktape/issues/1524 +SLOT="0/${PV}" +KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86" + +PATCHES=( + "${FILESDIR}/${PN}-2.6.0-respect-tc-env.patch" +) + +src_prepare() { + default + + # Set install path + sed -i "s#INSTALL_PREFIX = /usr/local#INSTALL_PREFIX = ${ED}/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_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dodir /usr/$(get_libdir) + dodir /usr/include + emake install + + insinto /usr/$(get_libdir)/pkgconfig/ + doins "${S}/${PN}.pc" +} diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape-2.6.0-respect-tc-env.patch b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape-2.6.0-respect-tc-env.patch new file mode 100644 index 0000000000..cb92d0ab8d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape-2.6.0-respect-tc-env.patch @@ -0,0 +1,33 @@ +diff --git a/Makefile.sharedlibrary b/Makefile.sharedlibrary +index 156ea96..a0997b1 100644 +--- a/Makefile.sharedlibrary ++++ b/Makefile.sharedlibrary +@@ -52,7 +52,7 @@ INSTALL_PREFIX = /usr/local + DUKTAPE_SRCDIR = ./src + #DUKTAPE_SRCDIR = ./src-noline + +-CC = gcc ++CC ?= gcc + + .PHONY: all + all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) +@@ -62,11 +62,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) + # to $INSTALL_PREFIX/include on installation. + + libduktape.$(SO_REALNAME_SUFFIX): +- $(CC) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \ ++ $(CC) -shared -fPIC ${CFLAGS} ${LDFLAGS} -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) -lm \ + -o $@ $(DUKTAPE_SRCDIR)/duktape.c + + libduktaped.$(SO_REALNAME_SUFFIX): +- $(CC) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \ ++ $(CC) -shared -fPIC ${CFLAGS} ${LDFLAGS} -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) -lm \ + -o $@ $(DUKTAPE_SRCDIR)/duktape.c + + # Symlinks depend on platform conventions. +@@ -85,4 +85,4 @@ install: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) + + CCOPTS = -I./examples/cmdline + duk: +- $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm ++ $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape.pc b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape.pc new file mode 100644 index 0000000000..56eff91ada --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/LIBDIR +includedir=${prefix}/include + +Name: duktape +Description: Embeddable Javascript engine +Version: VERSION +Libs: -L${libdir} -lduktape +Cflags: -I${includedir} diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/duktape/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/metadata.xml new file mode 100644 index 0000000000..57e7311084 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/duktape/metadata.xml @@ -0,0 +1,11 @@ + + + + + thev00d00@gentoo.org + Ian Whyman + + + svaarala/duktape + +