summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-18 20:57:11 +0100
committerSam James <sam@gentoo.org>2021-08-18 20:57:11 +0100
commit267853d5d4b31f63b333c57cbbb19dc168ea7cd8 (patch)
treed6cf876685d0d10a5e87d6d952dc7b363e66a5b6 /dev-util/cargo-c
parentdev-util/cargo-c: use system libgit2, libssh2 (diff)
downloadgentoo-267853d5d4b31f63b333c57cbbb19dc168ea7cd8.tar.gz
gentoo-267853d5d4b31f63b333c57cbbb19dc168ea7cd8.tar.bz2
gentoo-267853d5d4b31f63b333c57cbbb19dc168ea7cd8.zip
dev-util/cargo-c: unbundle more deps, missing subslot deps
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/cargo-c')
-rw-r--r--dev-util/cargo-c/cargo-c-0.6.2-r1.ebuild16
-rw-r--r--dev-util/cargo-c/cargo-c-0.7.2-r1.ebuild21
-rw-r--r--dev-util/cargo-c/cargo-c-0.8.0-r1.ebuild21
-rw-r--r--dev-util/cargo-c/cargo-c-0.8.1-r1.ebuild21
-rw-r--r--dev-util/cargo-c/cargo-c-0.8.2-r1.ebuild19
-rw-r--r--dev-util/cargo-c/cargo-c-0.9.0-r1.ebuild16
6 files changed, 72 insertions, 42 deletions
diff --git a/dev-util/cargo-c/cargo-c-0.6.2-r1.ebuild b/dev-util/cargo-c/cargo-c-0.6.2-r1.ebuild
index cf272d7803bf..8baa339ac276 100644
--- a/dev-util/cargo-c/cargo-c-0.6.2-r1.ebuild
+++ b/dev-util/cargo-c/cargo-c-0.6.2-r1.ebuild
@@ -155,11 +155,15 @@ LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ppc64 x86"
-DEPEND=""
-RDEPEND="sys-libs/zlib
- dev-libs/openssl:0=
- net-libs/libssh2
+RDEPEND="dev-libs/openssl:0=
+ net-libs/libssh2:=
net-misc/curl[ssl]
-"
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
-export LIBSSH2_SYS_USE_PKG_CONFIG=1
+src_configure() {
+ # Some crates will auto-build and statically link C libraries(!)
+ # Tracker bug #709568
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ export PKG_CONFIG_ALLOW_CROSS=1
+}
diff --git a/dev-util/cargo-c/cargo-c-0.7.2-r1.ebuild b/dev-util/cargo-c/cargo-c-0.7.2-r1.ebuild
index ed31e871490e..93687b175335 100644
--- a/dev-util/cargo-c/cargo-c-0.7.2-r1.ebuild
+++ b/dev-util/cargo-c/cargo-c-0.7.2-r1.ebuild
@@ -158,18 +158,23 @@ LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-DEPEND=""
-RDEPEND="sys-libs/zlib
+RDEPEND="dev-libs/libgit2:=
dev-libs/openssl:0=
- dev-libs/libgit2
- net-libs/libssh2
+ net-libs/libssh2:=
net-misc/curl[ssl]
-"
-
-export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
src_unpack() {
cargo_src_unpack
- tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}"
+ tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}" || die
+}
+
+src_configure() {
+ # Some crates will auto-build and statically link C libraries(!)
+ # Tracker bug #709568
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ export LIBGIT2_SYS_USE_PKG_CONFIG=1
+ export PKG_CONFIG_ALLOW_CROSS=1
}
diff --git a/dev-util/cargo-c/cargo-c-0.8.0-r1.ebuild b/dev-util/cargo-c/cargo-c-0.8.0-r1.ebuild
index 582ce98e1a84..1867417c7107 100644
--- a/dev-util/cargo-c/cargo-c-0.8.0-r1.ebuild
+++ b/dev-util/cargo-c/cargo-c-0.8.0-r1.ebuild
@@ -158,18 +158,23 @@ LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-DEPEND=""
-RDEPEND="sys-libs/zlib
+RDEPEND="dev-libs/libgit2:=
dev-libs/openssl:0=
- dev-libs/libgit2
- net-libs/libssh2
+ net-libs/libssh2:=
net-misc/curl[ssl]
-"
-
-export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
src_unpack() {
cargo_src_unpack
- tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}"
+ tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}" || die
+}
+
+src_configure() {
+ # Some crates will auto-build and statically link C libraries(!)
+ # Tracker bug #709568
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ export LIBGIT2_SYS_USE_PKG_CONFIG=1
+ export PKG_CONFIG_ALLOW_CROSS=1
}
diff --git a/dev-util/cargo-c/cargo-c-0.8.1-r1.ebuild b/dev-util/cargo-c/cargo-c-0.8.1-r1.ebuild
index 1182b510201c..ce73eb06b582 100644
--- a/dev-util/cargo-c/cargo-c-0.8.1-r1.ebuild
+++ b/dev-util/cargo-c/cargo-c-0.8.1-r1.ebuild
@@ -159,18 +159,23 @@ LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-DEPEND=""
-RDEPEND="sys-libs/zlib
+RDEPEND="dev-libs/libgit2:=
dev-libs/openssl:0=
- dev-libs/libgit2
- net-libs/libssh2
+ net-libs/libssh2:=
net-misc/curl[ssl]
-"
-
-export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
src_unpack() {
cargo_src_unpack
- tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}"
+ tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}" || die
+}
+
+src_configure() {
+ # Some crates will auto-build and statically link C libraries(!)
+ # Tracker bug #709568
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ export LIBGIT2_SYS_USE_PKG_CONFIG=1
+ export PKG_CONFIG_ALLOW_CROSS=1
}
diff --git a/dev-util/cargo-c/cargo-c-0.8.2-r1.ebuild b/dev-util/cargo-c/cargo-c-0.8.2-r1.ebuild
index dd1404823610..e791306969c8 100644
--- a/dev-util/cargo-c/cargo-c-0.8.2-r1.ebuild
+++ b/dev-util/cargo-c/cargo-c-0.8.2-r1.ebuild
@@ -160,18 +160,23 @@ LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-RDEPEND="dev-libs/openssl:0=
- dev-libs/libgit2
- net-libs/libssh2
+RDEPEND="dev-libs/libgit2:=
+ dev-libs/openssl:0=
+ net-libs/libssh2:=
net-misc/curl[ssl]
- sys-libs/zlib
-"
+ sys-libs/zlib"
DEPEND="${RDEPEND}"
-export LIBSSH2_SYS_USE_PKG_CONFIG=1
-
src_unpack() {
cargo_src_unpack
tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}" || die
}
+
+src_configure() {
+ # Some crates will auto-build and statically link C libraries(!)
+ # Tracker bug #709568
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ export LIBGIT2_SYS_USE_PKG_CONFIG=1
+ export PKG_CONFIG_ALLOW_CROSS=1
+}
diff --git a/dev-util/cargo-c/cargo-c-0.9.0-r1.ebuild b/dev-util/cargo-c/cargo-c-0.9.0-r1.ebuild
index f393e1455e5e..7d3f7a4df46f 100644
--- a/dev-util/cargo-c/cargo-c-0.9.0-r1.ebuild
+++ b/dev-util/cargo-c/cargo-c-0.9.0-r1.ebuild
@@ -161,18 +161,24 @@ LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
-RDEPEND="dev-libs/openssl:0=
- dev-libs/libgit2
- net-libs/libssh2
+RDEPEND="dev-libs/libgit2:=
+ dev-libs/openssl:0=
+ net-libs/libssh2:=
net-misc/curl[ssl]
sys-libs/zlib
"
DEPEND="${RDEPEND}"
-export LIBSSH2_SYS_USE_PKG_CONFIG=1
-
src_unpack() {
cargo_src_unpack
tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}" || die
}
+
+src_configure() {
+ # Some crates will auto-build and statically link C libraries(!)
+ # Tracker bug #709568
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ export LIBGIT2_SYS_USE_PKG_CONFIG=1
+ export PKG_CONFIG_ALLOW_CROSS=1
+}