1 |
commit: c0d01ac4407b31e82dd12bb21ca366c9e5fcc087 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 2 14:17:35 2020 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 2 14:18:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0d01ac4 |
7 |
|
8 |
net-libs/libcork: respect USE=static-libs |
9 |
|
10 |
Closes: https://bugs.gentoo.org/724904 |
11 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
12 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
13 |
|
14 |
net-libs/libcork/libcork-0.15.0-r1.ebuild | 45 +++++++++++++++++++++++++++++++ |
15 |
1 file changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libcork/libcork-0.15.0-r1.ebuild b/net-libs/libcork/libcork-0.15.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..24782aabf81 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/libcork/libcork-0.15.0-r1.ebuild |
22 |
@@ -0,0 +1,45 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit cmake-utils |
29 |
+ |
30 |
+DESCRIPTION="A simple, easily embeddable cross-platform C library" |
31 |
+HOMEPAGE="https://github.com/dcreager/libcork" |
32 |
+SRC_URI="https://github.com/dcreager/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
37 |
+IUSE="static-libs" |
38 |
+ |
39 |
+RDEPEND="dev-libs/check" |
40 |
+DEPEND="${RDEPEND} |
41 |
+ virtual/pkgconfig" |
42 |
+ |
43 |
+PATCHES=( |
44 |
+ "${FILESDIR}/${P}-git.patch" |
45 |
+ "${FILESDIR}/${P}-version.patch" |
46 |
+) |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ if ! [ -e "${S}"/RELEASE-VERSION ] ; then |
50 |
+ echo ${PV} > "${S}"/RELEASE-VERSION || die |
51 |
+ fi |
52 |
+ sed -i -e "/DESTINATION/s/\${PROJECT_NAME}/\${PROJECT_NAME}-${PVR}/g" \ |
53 |
+ docs/old/CMakeLists.txt || die |
54 |
+ |
55 |
+ cmake-utils_src_prepare |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local mycmakeargs=( |
60 |
+ -DENABLE_STATIC=$(usex static-libs) |
61 |
+ ) |
62 |
+ cmake-utils_src_configure |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ cmake-utils_src_install |
67 |
+} |