mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 17:36:59 +02:00
add dependencies for polkit 0.119 (with duktape)
This commit is contained in:
parent
79683ebb3c
commit
f8b827361c
7
sdk_container/src/third_party/portage-stable/acct-group/polkitd/metadata.xml
vendored
Normal file
7
sdk_container/src/third_party/portage-stable/acct-group/polkitd/metadata.xml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>freedesktop-bugs@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
8
sdk_container/src/third_party/portage-stable/acct-group/polkitd/polkitd-0-r1.ebuild
vendored
Normal file
8
sdk_container/src/third_party/portage-stable/acct-group/polkitd/polkitd-0-r1.ebuild
vendored
Normal file
@ -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
|
7
sdk_container/src/third_party/portage-stable/acct-user/polkitd/metadata.xml
vendored
Normal file
7
sdk_container/src/third_party/portage-stable/acct-user/polkitd/metadata.xml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>freedesktop-bugs@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
12
sdk_container/src/third_party/portage-stable/acct-user/polkitd/polkitd-0-r1.ebuild
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/acct-user/polkitd/polkitd-0-r1.ebuild
vendored
Normal file
@ -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
|
1
sdk_container/src/third_party/portage-stable/dev-lang/duktape/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/dev-lang/duktape/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST duktape-2.6.0.tar.xz 1035160 BLAKE2B 98155e1bf7e76aab37f5ccdb951d9d456df3d984ebed5058d8931e25317ffd94b4d95f08e102eb6eb2fa36ab6d2d60be6072b4101b7754e1c1440f7d6fb2c91b SHA512 d72a2aaa05391fa243861aca6ca6082f91a08b9c5d60c7b246d35d7161532b0048bb67bd8fec7996c700ee317ac2bb52e528582682e5425b0431757d8b1c5be4
|
51
sdk_container/src/third_party/portage-stable/dev-lang/duktape/duktape-2.6.0.ebuild
vendored
Normal file
51
sdk_container/src/third_party/portage-stable/dev-lang/duktape/duktape-2.6.0.ebuild
vendored
Normal file
@ -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"
|
||||
}
|
@ -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
|
10
sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape.pc
vendored
Normal file
10
sdk_container/src/third_party/portage-stable/dev-lang/duktape/files/duktape.pc
vendored
Normal file
@ -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}
|
11
sdk_container/src/third_party/portage-stable/dev-lang/duktape/metadata.xml
vendored
Normal file
11
sdk_container/src/third_party/portage-stable/dev-lang/duktape/metadata.xml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>thev00d00@gentoo.org</email>
|
||||
<name>Ian Whyman</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">svaarala/duktape</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user