mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
dev-util: Replace pkgconfig with pkgconf
pkgconfig was obsoleted in favor of pkgconf. The dev-util/pkgconf package comes from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
This commit is contained in:
parent
cbd60d5f9b
commit
160ee62ed2
2
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/Manifest
vendored
Normal file
2
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/Manifest
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
DIST pkgconf-1.7.4.tar.xz 293888 BLAKE2B af814174b59e3ea7009230f639a6237226caafb22300946904dd10810c0b5cfcbfeea21767a3a1d2c2b5cb1fe4b7b1d995a52d820fcfce3adb383c66762b7576 SHA512 92c080684898b42824a1f1a7e3ce8a600896fc9c20fcf263f032b856fa4c7139607f87ba44d18ed358b8c5f4f04477708800d20a4e10f96e4268a55682f7f0c1
|
||||
DIST pkgconf-1.8.0.tar.xz 296304 BLAKE2B 6585a855a313406f77d26fba3cc3cef798b27c4b7ece81738bdba12f36ee93fbcaf838e1065406c28adc20852e34e2de14bc5f4837982f9cc35360d9a3ac83a5 SHA512 58204006408ad5ce91222ed3c93c2e0b61c04fa83c0a8ad337b747b583744578dbebd4ad5ccbc577689637caa1c5dc246b7795ac46e39c6666b1aa78199b7c28
|
21
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/metadata.xml
vendored
Normal file
21
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/metadata.xml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>floppym@gentoo.org</email>
|
||||
<name>Mike Gilbert</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>polynomial-c@gentoo.org</email>
|
||||
<name>Lars Wendler</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
</maintainer>
|
||||
<slots>
|
||||
<subslots>SONAME version of libpkgconf</subslots>
|
||||
</slots>
|
||||
<upstream>
|
||||
<remote-id type="github">pkgconf/pkgconf</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
74
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/pkgconf-1.7.4-r1.ebuild
vendored
Normal file
74
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/pkgconf-1.7.4-r1.ebuild
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
# Copyright 2012-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib multilib-minimal
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://git.sr.ht/~kaniini/pkgconf"
|
||||
else
|
||||
SRC_URI="http://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~ppc-macos ~x64-macos"
|
||||
fi
|
||||
|
||||
DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
|
||||
HOMEPAGE="https://git.sr.ht/~kaniini/pkgconf"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0/3"
|
||||
IUSE="test"
|
||||
|
||||
# tests require 'kyua'
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-libs/atf
|
||||
dev-util/kyua
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
!dev-util/pkgconfig
|
||||
"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/pkgconf$(get_exeext)
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
[[ ${PV} == "9999" ]] && eautoreconf
|
||||
MULTILIB_CHOST_TOOLS+=(
|
||||
/usr/bin/pkg-config$(get_exeext)
|
||||
)
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local ECONF_SOURCE="${S}"
|
||||
local args=(
|
||||
--disable-static
|
||||
--with-system-includedir="${EPREFIX}/usr/include"
|
||||
--with-system-libdir="${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)"
|
||||
)
|
||||
econf "${args[@]}"
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
unset PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
|
||||
default
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
|
||||
dosym pkgconf$(get_exeext) /usr/bin/pkg-config$(get_exeext)
|
||||
dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
74
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/pkgconf-1.8.0-r1.ebuild
vendored
Normal file
74
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/pkgconf-1.8.0-r1.ebuild
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
# Copyright 2012-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib multilib-minimal
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://git.sr.ht/~kaniini/pkgconf"
|
||||
else
|
||||
SRC_URI="http://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
|
||||
HOMEPAGE="https://git.sr.ht/~kaniini/pkgconf"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0/3"
|
||||
IUSE="test"
|
||||
|
||||
# tests require 'kyua'
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-libs/atf
|
||||
dev-util/kyua
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
!dev-util/pkgconfig
|
||||
"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/pkgconf$(get_exeext)
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
[[ ${PV} == "9999" ]] && eautoreconf
|
||||
MULTILIB_CHOST_TOOLS+=(
|
||||
/usr/bin/pkg-config$(get_exeext)
|
||||
)
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local ECONF_SOURCE="${S}"
|
||||
local args=(
|
||||
--disable-static
|
||||
--with-system-includedir="${EPREFIX}/usr/include"
|
||||
--with-system-libdir="${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)"
|
||||
)
|
||||
econf "${args[@]}"
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
unset PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
|
||||
default
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
|
||||
dosym pkgconf$(get_exeext) /usr/bin/pkg-config$(get_exeext)
|
||||
dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
74
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/pkgconf-9999.ebuild
vendored
Normal file
74
sdk_container/src/third_party/portage-stable/dev-util/pkgconf/pkgconf-9999.ebuild
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
# Copyright 2012-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib multilib-minimal
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/pkgconf/pkgconf.git"
|
||||
else
|
||||
SRC_URI="http://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~ppc-macos ~x64-macos"
|
||||
fi
|
||||
|
||||
DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
|
||||
HOMEPAGE="https://git.sr.ht/~kaniini/pkgconf"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0/3"
|
||||
IUSE="test"
|
||||
|
||||
# tests require 'kyua'
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-libs/atf
|
||||
dev-util/kyua
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
!dev-util/pkgconfig
|
||||
"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/pkgconf$(get_exeext)
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
[[ ${PV} == "9999" ]] && eautoreconf
|
||||
MULTILIB_CHOST_TOOLS+=(
|
||||
/usr/bin/pkg-config$(get_exeext)
|
||||
)
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local ECONF_SOURCE="${S}"
|
||||
local args=(
|
||||
--disable-static
|
||||
--with-system-includedir="${EPREFIX}/usr/include"
|
||||
--with-system-libdir="${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)"
|
||||
)
|
||||
econf "${args[@]}"
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
unset PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
|
||||
default
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
|
||||
dosym pkgconf$(get_exeext) /usr/bin/pkg-config$(get_exeext)
|
||||
dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
DIST pkg-config-0.28.tar.gz 1931203 BLAKE2B bafdd4e838623965c6bd454421ddd9051fc43fc29948e1615b49fef463c3c3a18807aabe6416f96cfdf58d6b1c9e114d77f97bd985facee7c14284a8a64a768b SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320
|
||||
DIST pkg-config-0.29.1.tar.gz 2013454 BLAKE2B 5f33022b2df83de1c9202e090ea9be926d1f2b796152969d46ad45772ceb792c3f2bb95714cf1def28393b32db1b4052c3fdfe9f71076d130a57172987c04d0e SHA512 d2963355929d7aae0fbadad445d67b5c6762934fc4963a10a4b72ae90f7f6df4e6a38694884b924ff37eedaf636b49f3f521fe4eb3009e0322a402f330f1b4c2
|
||||
DIST pkg-config-0.29.2.tar.gz 2016830 BLAKE2B e8f0420033524ad768cac3c82138546e4cd76c47f5835b7b98662ab01eaf3feef08f495a69c04980d51b57935567ab1d465ef4e1d0529735ad0031c828585324 SHA512 4861ec6428fead416f5cbbbb0bbad10b9152967e481d4b0ff2eb396a9f297f552984c9bb72f6864a37dcd8fca1d9ccceda3ef18d8f121938dbe4fdf2b870fe75
|
@ -1,281 +0,0 @@
|
||||
From 217ffa021257fc2313c9eeb3e94e2ee38d255634 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Jones <pjones@redhat.com>
|
||||
Date: Wed, 15 Apr 2015 12:25:29 -0400
|
||||
Subject: [PATCH] Enable large file support
|
||||
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=90078
|
||||
|
||||
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||||
|
||||
[Alexandre Rostovtsev <tetromino@gentoo.org>: expand out configure,
|
||||
config.h.in modifications.]
|
||||
---
|
||||
configure.ac | 3 +
|
||||
config.h.in | 11 ++++
|
||||
configure | 203 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 217 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2b33371..1a321e1 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -17,6 +17,9 @@ dnl by either passing --disable-silent-rules to configure or passing V=1
|
||||
dnl to make
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
|
||||
+dnl Enable large file support
|
||||
+AC_SYS_LARGEFILE
|
||||
+
|
||||
dnl Check for programs
|
||||
AC_PROG_CC
|
||||
AC_CHECK_PROG([LN], [ln], [ln], [cp -Rp])
|
||||
diff --git a/config.h.in b/config.h.in
|
||||
index 0aac8f3..fdae454 100644
|
||||
--- a/config.h.in
|
||||
+++ b/config.h.in
|
||||
@@ -72,3 +72,14 @@
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
+
|
||||
+/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
+#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
+# define _DARWIN_USE_64_BIT_INODE 1
|
||||
+#endif
|
||||
+
|
||||
+/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
+#undef _FILE_OFFSET_BITS
|
||||
+
|
||||
+/* Define for large files, on AIX-style hosts. */
|
||||
+#undef _LARGE_FILES
|
||||
diff --git a/configure b/configure
|
||||
index 160ecab..f897e22 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -783,6 +783,7 @@ with_gnu_ld
|
||||
with_sysroot
|
||||
enable_libtool_lock
|
||||
enable_silent_rules
|
||||
+enable_largefile
|
||||
with_pc_path
|
||||
with_system_include_path
|
||||
with_system_library_path
|
||||
@@ -1435,6 +1436,7 @@ Optional Features:
|
||||
--disable-libtool-lock avoid locking (might break parallel builds)
|
||||
--enable-silent-rules less verbose build output (undo: "make V=1")
|
||||
--disable-silent-rules verbose build output (undo: "make V=0")
|
||||
+ --disable-largefile omit support for large files
|
||||
--enable-indirect-deps list both direct and indirect dependencies.
|
||||
--disable-indirect-deps only list direct dependencies.
|
||||
default=auto
|
||||
@@ -11389,6 +11391,207 @@ fi
|
||||
AM_BACKSLASH='\'
|
||||
|
||||
|
||||
+# Check whether --enable-largefile was given.
|
||||
+if test "${enable_largefile+set}" = set; then :
|
||||
+ enableval=$enable_largefile;
|
||||
+fi
|
||||
+
|
||||
+if test "$enable_largefile" != no; then
|
||||
+
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
||||
+$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
||||
+if ${ac_cv_sys_largefile_CC+:} false; then :
|
||||
+ $as_echo_n "(cached) " >&6
|
||||
+else
|
||||
+ ac_cv_sys_largefile_CC=no
|
||||
+ if test "$GCC" != yes; then
|
||||
+ ac_save_CC=$CC
|
||||
+ while :; do
|
||||
+ # IRIX 6.2 and later do not support large files by default,
|
||||
+ # so use the C compiler's -n32 option if that helps.
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+#include <sys/types.h>
|
||||
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
||||
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
+ since some C++ compilers masquerading as C compilers
|
||||
+ incorrectly reject 9223372036854775807. */
|
||||
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
+ && LARGE_OFF_T % 2147483647 == 1)
|
||||
+ ? 1 : -1];
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+ if ac_fn_c_try_compile "$LINENO"; then :
|
||||
+ break
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext
|
||||
+ CC="$CC -n32"
|
||||
+ if ac_fn_c_try_compile "$LINENO"; then :
|
||||
+ ac_cv_sys_largefile_CC=' -n32'; break
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext
|
||||
+ break
|
||||
+ done
|
||||
+ CC=$ac_save_CC
|
||||
+ rm -f conftest.$ac_ext
|
||||
+ fi
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
||||
+$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
||||
+ if test "$ac_cv_sys_largefile_CC" != no; then
|
||||
+ CC=$CC$ac_cv_sys_largefile_CC
|
||||
+ fi
|
||||
+
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
||||
+$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
||||
+if ${ac_cv_sys_file_offset_bits+:} false; then :
|
||||
+ $as_echo_n "(cached) " >&6
|
||||
+else
|
||||
+ while :; do
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+#include <sys/types.h>
|
||||
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
||||
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
+ since some C++ compilers masquerading as C compilers
|
||||
+ incorrectly reject 9223372036854775807. */
|
||||
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
+ && LARGE_OFF_T % 2147483647 == 1)
|
||||
+ ? 1 : -1];
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+if ac_fn_c_try_compile "$LINENO"; then :
|
||||
+ ac_cv_sys_file_offset_bits=no; break
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+#define _FILE_OFFSET_BITS 64
|
||||
+#include <sys/types.h>
|
||||
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
||||
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
+ since some C++ compilers masquerading as C compilers
|
||||
+ incorrectly reject 9223372036854775807. */
|
||||
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
+ && LARGE_OFF_T % 2147483647 == 1)
|
||||
+ ? 1 : -1];
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+if ac_fn_c_try_compile "$LINENO"; then :
|
||||
+ ac_cv_sys_file_offset_bits=64; break
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
+ ac_cv_sys_file_offset_bits=unknown
|
||||
+ break
|
||||
+done
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
||||
+$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
||||
+case $ac_cv_sys_file_offset_bits in #(
|
||||
+ no | unknown) ;;
|
||||
+ *)
|
||||
+cat >>confdefs.h <<_ACEOF
|
||||
+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
||||
+_ACEOF
|
||||
+;;
|
||||
+esac
|
||||
+rm -rf conftest*
|
||||
+ if test $ac_cv_sys_file_offset_bits = unknown; then
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
||||
+$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
||||
+if ${ac_cv_sys_large_files+:} false; then :
|
||||
+ $as_echo_n "(cached) " >&6
|
||||
+else
|
||||
+ while :; do
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+#include <sys/types.h>
|
||||
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
||||
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
+ since some C++ compilers masquerading as C compilers
|
||||
+ incorrectly reject 9223372036854775807. */
|
||||
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
+ && LARGE_OFF_T % 2147483647 == 1)
|
||||
+ ? 1 : -1];
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+if ac_fn_c_try_compile "$LINENO"; then :
|
||||
+ ac_cv_sys_large_files=no; break
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+#define _LARGE_FILES 1
|
||||
+#include <sys/types.h>
|
||||
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
||||
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
+ since some C++ compilers masquerading as C compilers
|
||||
+ incorrectly reject 9223372036854775807. */
|
||||
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
+ && LARGE_OFF_T % 2147483647 == 1)
|
||||
+ ? 1 : -1];
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+if ac_fn_c_try_compile "$LINENO"; then :
|
||||
+ ac_cv_sys_large_files=1; break
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
+ ac_cv_sys_large_files=unknown
|
||||
+ break
|
||||
+done
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
||||
+$as_echo "$ac_cv_sys_large_files" >&6; }
|
||||
+case $ac_cv_sys_large_files in #(
|
||||
+ no | unknown) ;;
|
||||
+ *)
|
||||
+cat >>confdefs.h <<_ACEOF
|
||||
+#define _LARGE_FILES $ac_cv_sys_large_files
|
||||
+_ACEOF
|
||||
+;;
|
||||
+esac
|
||||
+rm -rf conftest*
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+fi
|
||||
+
|
||||
+
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
--
|
||||
2.4.2
|
||||
|
@ -1,30 +0,0 @@
|
||||
http://bugs.gentoo.org/512336
|
||||
http://bugs.freedesktop.org/show_bug.cgi?id=78077
|
||||
|
||||
From 8691b580ab3f7ac36182060e2253307fbd0aba75 Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Oakley <aoakley@espial.com>
|
||||
Date: Tue, 29 Apr 2014 13:14:35 +0100
|
||||
Subject: [PATCH 1/1] Strip system library directories reliably
|
||||
|
||||
This loop was changed from a while loop to a for loop in commit
|
||||
9bf6277b, but the iterator is now advanced twice each time round the
|
||||
loop.
|
||||
---
|
||||
pkg.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/pkg.c b/pkg.c
|
||||
index 3697fec..c847c95 100644
|
||||
--- a/pkg.c
|
||||
+++ b/pkg.c
|
||||
@@ -917,7 +917,6 @@ verify_package (Package *pkg)
|
||||
}
|
||||
system_dir_iter = system_dir_iter->next;
|
||||
}
|
||||
- iter = iter->next;
|
||||
}
|
||||
g_list_free (system_directories);
|
||||
|
||||
--
|
||||
1.8.3.2
|
||||
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>freedesktop-bugs@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="internal-glib">Use internal copy of <pkg>dev-libs/glib</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic libtool multilib multilib-minimal
|
||||
|
||||
MY_P=pkg-config-${PV}
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
|
||||
inherit autotools git-2
|
||||
else
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Package config system that manages compile/link flags"
|
||||
HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
|
||||
|
||||
RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
||||
!dev-util/pkgconf[pkg-config]
|
||||
!dev-util/pkg-config-lite
|
||||
!dev-util/pkgconfig-openbsd[pkg-config]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-strip_system_library_dirs_reliably.patch
|
||||
|
||||
sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
|
||||
|
||||
epatch_user
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
eautoreconf
|
||||
else
|
||||
elibtoolize # Required for FreeMiNT wrt #333429
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf
|
||||
|
||||
if use internal-glib; then
|
||||
myconf+=' --with-internal-glib'
|
||||
# non-glibc platforms use GNU libiconv, but configure needs to
|
||||
# know about that not to get confused when it finds something
|
||||
# outside the prefix too
|
||||
if use prefix && use !elibc_glibc ; then
|
||||
myconf+=" --with-libiconv=gnu"
|
||||
# add the libdir for libtool, otherwise it'll make love with system
|
||||
# installed libiconv
|
||||
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
|
||||
fi
|
||||
else
|
||||
if ! has_version --host-root dev-util/pkgconfig; then
|
||||
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
|
||||
export GLIB_LIBS="-lglib-2.0"
|
||||
fi
|
||||
fi
|
||||
|
||||
use ppc64 && use hardened && replace-flags -O[2-3] -O1
|
||||
|
||||
# Force using all the requirements when linking, so that needed -pthread
|
||||
# lines are inherited between libraries
|
||||
use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
|
||||
|
||||
[[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--with-system-include-path="${EPREFIX}"/usr/include \
|
||||
--with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use prefix; then
|
||||
# Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
|
||||
# simplify cross-prefix builds
|
||||
echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
fi
|
||||
}
|
@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
|
||||
inherit eutils flag-o-matic libtool multilib multilib-minimal
|
||||
|
||||
MY_P=pkg-config-${PV}
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
# 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
|
||||
# weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
|
||||
WANT_AUTOMAKE=1.12
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
|
||||
inherit autotools git-r3
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Package config system that manages compile/link flags"
|
||||
HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
|
||||
|
||||
RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
||||
!dev-util/pkgconf[pkg-config]
|
||||
!dev-util/pkg-config-lite
|
||||
!dev-util/pkgconfig-openbsd[pkg-config]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-strip_system_library_dirs_reliably.patch
|
||||
|
||||
sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
|
||||
|
||||
# Large file support, fixed in upstream git; bug #550508
|
||||
epatch "${FILESDIR}"/${P}-lfs.patch
|
||||
# lfs patch touches config.h.in; need this hack to prevent autoreconf and automake
|
||||
touch aclocal.m4 config.h.in Makefile.in
|
||||
|
||||
epatch_user
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
eautoreconf
|
||||
else
|
||||
elibtoolize # Required for FreeMiNT wrt #333429
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf
|
||||
|
||||
if use internal-glib; then
|
||||
myconf+=' --with-internal-glib'
|
||||
# non-glibc platforms use GNU libiconv, but configure needs to
|
||||
# know about that not to get confused when it finds something
|
||||
# outside the prefix too
|
||||
if use prefix && use !elibc_glibc ; then
|
||||
myconf+=" --with-libiconv=gnu"
|
||||
# add the libdir for libtool, otherwise it'll make love with system
|
||||
# installed libiconv
|
||||
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
|
||||
fi
|
||||
else
|
||||
if ! has_version --host-root dev-util/pkgconfig; then
|
||||
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
|
||||
export GLIB_LIBS="-lglib-2.0"
|
||||
fi
|
||||
fi
|
||||
|
||||
use ppc64 && use hardened && replace-flags -O[2-3] -O1
|
||||
|
||||
# Force using all the requirements when linking, so that needed -pthread
|
||||
# lines are inherited between libraries
|
||||
use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
|
||||
|
||||
[[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--with-system-include-path="${EPREFIX}"/usr/include \
|
||||
--with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use prefix; then
|
||||
# Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
|
||||
# simplify cross-prefix builds
|
||||
echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
fi
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
|
||||
inherit eutils flag-o-matic libtool multilib multilib-minimal
|
||||
|
||||
MY_P=pkg-config-${PV}
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
# 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
|
||||
# weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
|
||||
WANT_AUTOMAKE=1.12
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
|
||||
inherit autotools git-r3
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Package config system that manages compile/link flags"
|
||||
HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
|
||||
|
||||
RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
||||
!dev-util/pkgconf[pkg-config]
|
||||
!dev-util/pkg-config-lite
|
||||
!dev-util/pkgconfig-openbsd[pkg-config]
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
|
||||
|
||||
eapply_user
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
eautoreconf
|
||||
else
|
||||
elibtoolize # Required for FreeMiNT wrt #333429
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# fix standards conflicts
|
||||
sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
|
||||
glib/configure || die
|
||||
sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
|
||||
glib/glib/giounix.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf
|
||||
|
||||
if use internal-glib; then
|
||||
myconf+=' --with-internal-glib'
|
||||
# non-glibc platforms use GNU libiconv, but configure needs to
|
||||
# know about that not to get confused when it finds something
|
||||
# outside the prefix too
|
||||
if use prefix && use !elibc_glibc ; then
|
||||
myconf+=" --with-libiconv=gnu"
|
||||
# add the libdir for libtool, otherwise it'll make love with system
|
||||
# installed libiconv
|
||||
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
|
||||
# the glib objects reference symbols from these frameworks,
|
||||
# not good, esp. since Carbon should be deprecated
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
append-ldflags -framework CoreFoundation -framework Carbon
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# required due to __EXTENSIONS__
|
||||
append-cppflags -DENABLE_NLS
|
||||
# similar to Darwin
|
||||
append-ldflags -lintl
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if ! has_version --host-root dev-util/pkgconfig; then
|
||||
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
|
||||
export GLIB_LIBS="-lglib-2.0"
|
||||
fi
|
||||
fi
|
||||
|
||||
use ppc64 && use hardened && replace-flags -O[2-3] -O1
|
||||
|
||||
# Force using all the requirements when linking, so that needed -pthread
|
||||
# lines are inherited between libraries
|
||||
use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
|
||||
|
||||
[[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--with-system-include-path="${EPREFIX}"/usr/include \
|
||||
--with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use prefix; then
|
||||
# Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
|
||||
# simplify cross-prefix builds
|
||||
echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
fi
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
|
||||
inherit eutils flag-o-matic libtool multilib multilib-minimal
|
||||
|
||||
MY_P=pkg-config-${PV}
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
# 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
|
||||
# weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
|
||||
WANT_AUTOMAKE=1.12
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
|
||||
inherit autotools git-r3
|
||||
else
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Package config system that manages compile/link flags"
|
||||
HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
|
||||
|
||||
RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
||||
!dev-util/pkgconf[pkg-config]
|
||||
!dev-util/pkg-config-lite
|
||||
!dev-util/pkgconfig-openbsd[pkg-config]
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
|
||||
|
||||
eapply_user
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
eautoreconf
|
||||
else
|
||||
elibtoolize # Required for FreeMiNT wrt #333429
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# fix standards conflicts
|
||||
sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
|
||||
glib/configure || die
|
||||
sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
|
||||
glib/glib/giounix.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf
|
||||
|
||||
if use internal-glib; then
|
||||
myconf+=' --with-internal-glib'
|
||||
# non-glibc platforms use GNU libiconv, but configure needs to
|
||||
# know about that not to get confused when it finds something
|
||||
# outside the prefix too
|
||||
if use prefix && use !elibc_glibc ; then
|
||||
myconf+=" --with-libiconv=gnu"
|
||||
# add the libdir for libtool, otherwise it'll make love with system
|
||||
# installed libiconv
|
||||
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
|
||||
# the glib objects reference symbols from these frameworks,
|
||||
# not good, esp. since Carbon should be deprecated
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
append-ldflags -framework CoreFoundation -framework Carbon
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# required due to __EXTENSIONS__
|
||||
append-cppflags -DENABLE_NLS
|
||||
# similar to Darwin
|
||||
append-ldflags -lintl
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if ! has_version --host-root dev-util/pkgconfig; then
|
||||
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
|
||||
export GLIB_LIBS="-lglib-2.0"
|
||||
fi
|
||||
fi
|
||||
|
||||
use ppc64 && use hardened && replace-flags -O[2-3] -O1
|
||||
|
||||
# Force using all the requirements when linking, so that needed -pthread
|
||||
# lines are inherited between libraries
|
||||
use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
|
||||
|
||||
[[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--with-system-include-path="${EPREFIX}"/usr/include \
|
||||
--with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use prefix; then
|
||||
# Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
|
||||
# simplify cross-prefix builds
|
||||
echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
fi
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
|
||||
inherit eutils flag-o-matic libtool multilib multilib-minimal
|
||||
|
||||
MY_P=pkg-config-${PV}
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
# 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
|
||||
# weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
|
||||
WANT_AUTOMAKE=1.12
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
|
||||
inherit autotools git-r3
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Package config system that manages compile/link flags"
|
||||
HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
|
||||
|
||||
RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
||||
!dev-util/pkgconf[pkg-config]
|
||||
!dev-util/pkg-config-lite
|
||||
!dev-util/pkgconfig-openbsd[pkg-config]
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
|
||||
|
||||
eapply_user
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
eautoreconf
|
||||
else
|
||||
elibtoolize # Required for FreeMiNT wrt #333429
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# fix standards conflicts
|
||||
sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
|
||||
glib/configure || die
|
||||
sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
|
||||
glib/glib/giounix.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf
|
||||
|
||||
if use internal-glib; then
|
||||
myconf+=' --with-internal-glib'
|
||||
# non-glibc platforms use GNU libiconv, but configure needs to
|
||||
# know about that not to get confused when it finds something
|
||||
# outside the prefix too
|
||||
if use prefix && use !elibc_glibc ; then
|
||||
myconf+=" --with-libiconv=gnu"
|
||||
# add the libdir for libtool, otherwise it'll make love with system
|
||||
# installed libiconv
|
||||
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
|
||||
# the glib objects reference symbols from these frameworks,
|
||||
# not good, esp. since Carbon should be deprecated
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
append-ldflags -framework CoreFoundation -framework Carbon
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# required due to __EXTENSIONS__
|
||||
append-cppflags -DENABLE_NLS
|
||||
# similar to Darwin
|
||||
append-ldflags -lintl
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if ! has_version --host-root dev-util/pkgconfig; then
|
||||
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
|
||||
export GLIB_LIBS="-lglib-2.0"
|
||||
fi
|
||||
fi
|
||||
|
||||
use ppc64 && use hardened && replace-flags -O[2-3] -O1
|
||||
|
||||
# Force using all the requirements when linking, so that needed -pthread
|
||||
# lines are inherited between libraries
|
||||
use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
|
||||
|
||||
[[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--with-system-include-path="${EPREFIX}"/usr/include \
|
||||
--with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use prefix; then
|
||||
# Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
|
||||
# simplify cross-prefix builds
|
||||
echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user