Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libzip/
Date: Fri, 13 Sep 2019 20:41:41
Message-Id: 1568407270.b00daebdc2fb1bcff062faaf1a05e756933e0d78.asturm@gentoo
1 commit: b00daebdc2fb1bcff062faaf1a05e756933e0d78
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 13 20:02:34 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 13 20:41:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b00daebd
7
8 dev-libs/libzip: Drop 1.5.2-r1
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-libs/libzip/libzip-1.5.2-r1.ebuild | 105 ---------------------------------
14 1 file changed, 105 deletions(-)
15
16 diff --git a/dev-libs/libzip/libzip-1.5.2-r1.ebuild b/dev-libs/libzip/libzip-1.5.2-r1.ebuild
17 deleted file mode 100644
18 index 814a668c430..00000000000
19 --- a/dev-libs/libzip/libzip-1.5.2-r1.ebuild
20 +++ /dev/null
21 @@ -1,105 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -inherit cmake-utils multibuild
28 -
29 -DESCRIPTION="Library for manipulating zip archives"
30 -HOMEPAGE="https://nih.at/libzip/"
31 -SRC_URI="https://www.nih.at/libzip/${P}.tar.xz"
32 -
33 -LICENSE="BSD"
34 -SLOT="0/5"
35 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
36 -IUSE="bzip2 doc gnutls libressl mbedtls ssl static-libs test"
37 -
38 -DEPEND="
39 - sys-libs/zlib
40 - bzip2? ( app-arch/bzip2 )
41 - ssl? (
42 - gnutls? ( >=net-libs/gnutls-3.6.5:= )
43 - !gnutls? (
44 - mbedtls? ( net-libs/mbedtls:= )
45 - !mbedtls? (
46 - !libressl? ( dev-libs/openssl:0= )
47 - libressl? ( dev-libs/libressl:0= )
48 - )
49 - )
50 - )
51 -"
52 -RDEPEND="${DEPEND}"
53 -
54 -PATCHES=( "${FILESDIR}/${P}-mbedtls.patch" ) # bug 680820
55 -
56 -pkg_setup() {
57 - # Upstream doesn't support building dynamic & static
58 - # simultaneously: https://github.com/nih-at/libzip/issues/76
59 - MULTIBUILD_VARIANTS=( shared $(usev static-libs) )
60 -}
61 -
62 -src_configure() {
63 - myconfigure() {
64 - local mycmakeargs=(
65 - -DBUILD_EXAMPLES=OFF # nothing is installed
66 - -DENABLE_COMMONCRYPTO=OFF # not in tree
67 - -DENABLE_BZIP2=$(usex bzip2)
68 - )
69 - if [[ ${MULTIBUILD_VARIANT} = static-libs ]]; then
70 - mycmakeargs+=(
71 - -DBUILD_DOC=OFF
72 - -DBUILD_EXAMPLES=OFF
73 - -DBUILD_SHARED_LIBS=OFF
74 - -DBUILD_TOOLS=OFF
75 - )
76 - else
77 - mycmakeargs+=(
78 - -DBUILD_DOC=$(usex doc)
79 - -DBUILD_REGRESS=$(usex test)
80 - )
81 - fi
82 -
83 - if use ssl; then
84 - if use gnutls; then
85 - mycmakeargs+=(
86 - -DENABLE_GNUTLS=$(usex gnutls)
87 - -DENABLE_MBEDTLS=OFF
88 - -DENABLE_OPENSSL=OFF
89 - )
90 - elif use mbedtls; then
91 - mycmakeargs+=(
92 - -DENABLE_GNUTLS=OFF
93 - -DENABLE_MBEDTLS=$(usex mbedtls)
94 - -DENABLE_OPENSSL=OFF
95 - )
96 - else
97 - mycmakeargs+=(
98 - -DENABLE_GNUTLS=OFF
99 - -DENABLE_MBEDTLS=OFF
100 - -DENABLE_OPENSSL=ON
101 - )
102 - fi
103 - else
104 - mycmakeargs+=(
105 - -DENABLE_GNUTLS=OFF
106 - -DENABLE_MBEDTLS=OFF
107 - -DENABLE_OPENSSL=OFF
108 - )
109 - fi
110 - cmake-utils_src_configure
111 - }
112 -
113 - multibuild_foreach_variant myconfigure
114 -}
115 -
116 -src_compile() {
117 - multibuild_foreach_variant cmake-utils_src_compile
118 -}
119 -
120 -src_test() {
121 - [[ ${MULTIBUILD_VARIANT} = shared ]] && cmake-utils_src_test
122 -}
123 -
124 -src_install() {
125 - multibuild_foreach_variant cmake-utils_src_install
126 -}