summaryrefslogtreecommitdiff
path: root/dev-util/pkgconfig-openbsd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/pkgconfig-openbsd
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/pkgconfig-openbsd')
-rw-r--r--dev-util/pkgconfig-openbsd/Manifest8
-rw-r--r--dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch19
-rw-r--r--dev-util/pkgconfig-openbsd/metadata.xml7
-rw-r--r--dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild70
-rw-r--r--dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild72
5 files changed, 176 insertions, 0 deletions
diff --git a/dev-util/pkgconfig-openbsd/Manifest b/dev-util/pkgconfig-openbsd/Manifest
new file mode 100644
index 000000000000..0f56684b6d31
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/Manifest
@@ -0,0 +1,8 @@
+AUX pkgconfig-openbsd-20130507-zap-warning.patch 525 SHA256 02045bde5bf5c31b6421e1828f743101988636896969825b9905777af85d89da SHA512 984d662b5918a4a0f1bc75cee538f8414ca431a6e3132b74f86a2e3ef538479b7966042f414a103393a78ff236a78eb5aeef0107c16493ffe86f3c66cc64f791 WHIRLPOOL 4bb57efa81dabacea1fce7982c371215f3eb2b57ea848d73a5ae7d5e633b125da5fcd26e8a45df80fe77a7ebae3ace43f69f827045c99f7bd72d394704587b50
+DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486
+DIST pkgconfig-openbsd-20130507.tar.xz 10876 SHA256 ed43eef85e6f2fcee3eb02944b59cdacf29305507d4f168dc63c022a452869b8 SHA512 39335c986be0f58fe22bfcda9b6196b34c7c8b7e889df2df0d9707fc699ba6e45df7aaa1d1f4bbe53098ea5fb1bb4aa3e5e33c22971978b40bba395642b41b69 WHIRLPOOL 607ab006bc262143ff4e87ccf72321f0217b7efba44f6b46efad34571d5324ba1fcb3a7142c75a002511fc6ba55ea2dbba16df383ca9fafbf52f38f308113f69
+EBUILD pkgconfig-openbsd-20130507-r1.ebuild 1719 SHA256 c0bcb835c016501c14646f77da8c4588f4df05bfb544db9852f2270cf62dad59 SHA512 8a5bcb1bc6d16ada5f7b3b913e8c3eafaead8a17b15de12e90c3422127e0f93a728cc344d5444e66f0ccffe5b12b361f44b6e63816bc1d2ecd0fe1e18eff37c9 WHIRLPOOL 7edebb2812bb4435afeb6f25b7eb0f6d03aef1439ae7716ecfd38e92e44523acb9030249ee19c06c95cb6ddf55d564d20a5bfd31d7f8b9d9039176bdf519e283
+EBUILD pkgconfig-openbsd-20130507-r2.ebuild 1765 SHA256 67678cfcc10b61547fa56366f53a8d04bc2e19295c2ed0b3eb1cc835e28107cc SHA512 71e2cea8ef068c4e0b6f81796529f6c6be6db03264621a3a7b676f311697d606a53554f07e6132626f8955757f9bef585ee88d6c8f6dcc1b551edd13d417120b WHIRLPOOL b75dd013b9e9d94ee7d99a8f9aae6e8bb7ff77d17170055d2bd2e4d9b7ebcbaa1e1626b08661c83060be08746c2ac52710385381caaf7877fbe7b94d6b1f40b7
+MISC ChangeLog 4378 SHA256 d986b13d9981d6205abcaaafb086ef2e53d1f7ce9fb429cb9c19ee3dae39ec9a SHA512 5ef2cb82bb0dde4dd1d5c709e41009092376764cc8de14d1d801a88ae9d9b5b0a5e5a6306cfb59a2f3796d37ab2e8b2f95c55b39e5e85c1f2a5647bf6c92c023 WHIRLPOOL 2dd41c7ffe9b12aa84fef2d0e27122822092164aacf0cc980c4a7e5be24f0b88828e5cb625d723126e67f0a1f90bc16344788e2bde419d6e3cef82157414d7f9
+MISC ChangeLog-2015 3132 SHA256 069e732476348e6800c43d3b3464961be4c0e339de30d60c78cb4859ace6f2b1 SHA512 bfdd5a1cdc7a475cac7a1f963071c7b1d67cc9d77c06c1a15ff183b9295ec79c8a501a7a71921bf14e6de82862485e6dcaa7f2688aee1d39dfdc69a3e5ab41a9 WHIRLPOOL bcacc002edd68cd714b86b978c01f51c5c47c67736098a0bafc2b36ccd9d0c322d92d29e85808eb40fd723869bf9271e4b7ef6a76f06e622ec0b19209837459d
+MISC metadata.xml 250 SHA256 2937de3a1956c82f929461800471cc8012c009d9978e22c93b7bda0b5e626947 SHA512 57c5d6cefedd04f50e461d73db25c3166735de76c6500985888a13fe3c23cb44b3e17b046d53376192abe8924257b8bd97c14934a2d24c7df29298660998e7c9 WHIRLPOOL 11ae320ea8bd6e8eab224b049bb85779f6ad20cd8ccf5fd319218bed65dedab6732e083602c15c9505ff423c549587011f751f9d776c3660841f463f7663210a
diff --git a/dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch b/dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch
new file mode 100644
index 000000000000..41784c919e19
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch
@@ -0,0 +1,19 @@
+Use of $_ produces warnings which can cause build failures in certain consumers.
+
+Backported from revision 1.4 upstream (http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm).
+
+Gentoo-bug: 538012
+Gentoo-bug: 545314
+Gentoo-bug: 545322
+Gentoo-bug: 545962
+
+--- a/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm
++++ b/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm
+@@ -91,7 +91,6 @@
+ {
+ my ($class, $fh, $name) = @_;
+ my $cfg = $class->new;
+- my $_;
+
+ $name = '' if !defined $name;
+ while (<$fh>) {
diff --git a/dev-util/pkgconfig-openbsd/metadata.xml b/dev-util/pkgconfig-openbsd/metadata.xml
new file mode 100644
index 000000000000..1632dc7b3fb8
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="pkg-config">Install as a replacement for <pkg>dev-util/pkgconfig</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild
new file mode 100644
index 000000000000..ff2fbadd47bb
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils multilib perl-module multilib-minimal
+
+# cvs -d anoncvs@anoncvs.openbsd.org:/cvs get src/usr.bin/pkg-config
+
+PKG_M4_VERSION=0.28
+
+DESCRIPTION="A perl based version of pkg-config from OpenBSD"
+HOMEPAGE="http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/"
+SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz
+ pkg-config? ( https://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_M4_VERSION}.tar.gz )"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+pkg-config"
+
+RDEPEND="virtual/perl-Getopt-Long
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkgconf[pkg-config]
+ )"
+
+S=${WORKDIR}/src
+
+src_prepare() {
+ epatch_user
+ ecvs_clean
+
+ # Config.pm from dev-lang/perl doesn't set ARCH, only archname
+ sed -i -e '/Config/s:ARCH:archname:' usr.bin/pkg-config/pkg-config || die
+
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config )
+ else
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config-openbsd )
+ fi
+}
+
+multilib_src_install() {
+ local pc_bin=pkg-config
+ use pkg-config || pc_bin+=-openbsd
+
+ newbin "${S}"/usr.bin/pkg-config/pkg-config ${pc_bin}
+ newman "${S}"/usr.bin/pkg-config/pkg-config.1 ${pc_bin}.1
+
+ # insert proper paths
+ local pc_paths=(
+ /usr/$(get_libdir)/pkgconfig
+ /usr/share/pkgconfig
+ )
+ sed -i -e "/my @PKGPATH/,/;/{s@(.*@( ${pc_paths[*]} );@p;d}" \
+ "${ED%/}/usr/bin/${pc_bin}" || die
+}
+
+multilib_src_install_all() {
+ if use pkg-config; then
+ insinto /usr/share/aclocal
+ doins "${WORKDIR}"/pkg-config-*/pkg.m4
+ fi
+
+ perl_set_version
+ insinto "${VENDOR_LIB}"
+ doins -r "${S}"/usr.bin/pkg-config/OpenBSD
+}
diff --git a/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild
new file mode 100644
index 000000000000..e47abefe3039
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils multilib perl-module multilib-minimal
+
+# cvs -d anoncvs@anoncvs.openbsd.org:/cvs get src/usr.bin/pkg-config
+
+PKG_M4_VERSION=0.28
+
+DESCRIPTION="A perl based version of pkg-config from OpenBSD"
+HOMEPAGE="http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/"
+SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz
+ pkg-config? ( https://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_M4_VERSION}.tar.gz )"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+pkg-config"
+
+RDEPEND="virtual/perl-Getopt-Long
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkgconf[pkg-config]
+ )"
+
+S=${WORKDIR}/src
+
+src_prepare() {
+ epatch_user
+ ecvs_clean
+
+ epatch "${FILESDIR}/${P}-zap-warning.patch"
+
+ # Config.pm from dev-lang/perl doesn't set ARCH, only archname
+ sed -i -e '/Config/s:ARCH:archname:' usr.bin/pkg-config/pkg-config || die
+
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config )
+ else
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config-openbsd )
+ fi
+}
+
+multilib_src_install() {
+ local pc_bin=pkg-config
+ use pkg-config || pc_bin+=-openbsd
+
+ newbin "${S}"/usr.bin/pkg-config/pkg-config ${pc_bin}
+ newman "${S}"/usr.bin/pkg-config/pkg-config.1 ${pc_bin}.1
+
+ # insert proper paths
+ local pc_paths=(
+ /usr/$(get_libdir)/pkgconfig
+ /usr/share/pkgconfig
+ )
+ sed -i -e "/my @PKGPATH/,/;/{s@(.*@( ${pc_paths[*]} );@p;d}" \
+ "${ED%/}/usr/bin/${pc_bin}" || die
+}
+
+multilib_src_install_all() {
+ if use pkg-config; then
+ insinto /usr/share/aclocal
+ doins "${WORKDIR}"/pkg-config-*/pkg.m4
+ fi
+
+ perl_set_version
+ insinto "${VENDOR_LIB}"
+ doins -r "${S}"/usr.bin/pkg-config/OpenBSD
+}