Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gnutls: ChangeLog gnutls-2.12.6.1.ebuild
Date: Fri, 01 Jul 2011 21:40:41
Message-Id: 20110701214030.EAEAE2004B@flycatcher.gentoo.org
1 hwoarang 11/07/01 21:40:30
2
3 Modified: ChangeLog
4 Added: gnutls-2.12.6.1.ebuild
5 Log:
6 Version bump. Requested by Arfrever
7
8 (Portage version: 2.2.0_alpha42/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.310 net-libs/gnutls/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.310&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.310&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?r1=1.309&r2=1.310
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v
20 retrieving revision 1.309
21 retrieving revision 1.310
22 diff -u -r1.309 -r1.310
23 --- ChangeLog 14 May 2011 18:42:08 -0000 1.309
24 +++ ChangeLog 1 Jul 2011 21:40:30 -0000 1.310
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/gnutls
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.309 2011/05/14 18:42:08 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.310 2011/07/01 21:40:30 hwoarang Exp $
30 +
31 +*gnutls-2.12.6.1 (01 Jul 2011)
32 +
33 + 01 Jul 2011; Markos Chandras <hwoarang@g.o> +gnutls-2.12.6.1.ebuild:
34 + Version bump. Requested by Arfrever
35
36 *gnutls-2.12.5 (14 May 2011)
37
38
39
40
41 1.1 net-libs/gnutls/gnutls-2.12.6.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-2.12.6.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-2.12.6.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnutls-2.12.6.1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-2.12.6.1.ebuild,v 1.1 2011/07/01 21:40:30 hwoarang Exp $
51
52 EAPI="3"
53
54 inherit autotools libtool
55
56 DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
57 HOMEPAGE="http://www.gnutls.org/"
58
59 if [[ "${PV}" == *pre* ]]; then
60 SRC_URI="http://daily.josefsson.org/${P%.*}/${P%.*}-${PV#*pre}.tar.gz"
61 else
62 MINOR_VERSION="${PV#*.}"
63 MINOR_VERSION="${MINOR_VERSION%%.*}"
64 if [[ $((MINOR_VERSION % 2)) == 0 ]]; then
65 #SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
66 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
67 else
68 SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.bz2"
69 fi
70 unset MINOR_VERSION
71 fi
72
73 # LGPL-2.1 for libgnutls library and GPL-3 for libgnutls-extra library.
74 LICENSE="GPL-3 LGPL-2.1"
75 SLOT="0"
76 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
77 IUSE="bindist +cxx doc examples guile lzo +nettle nls test zlib"
78
79 # lib/m4/hooks.m4 says that GnuTLS uses a fork of PaKChoiS.
80 RDEPEND=">=dev-libs/libtasn1-0.3.4
81 nls? ( virtual/libintl )
82 guile? ( >=dev-scheme/guile-1.8[networking] )
83 nettle? ( >=dev-libs/nettle-2.1[gmp] )
84 !nettle? ( >=dev-libs/libgcrypt-1.4.0 )
85 zlib? ( >=sys-libs/zlib-1.2.3.1 )
86 !bindist? ( lzo? ( >=dev-libs/lzo-2 ) )"
87 DEPEND="${RDEPEND}
88 sys-devel/libtool
89 doc? ( dev-util/gtk-doc )
90 nls? ( sys-devel/gettext )
91 test? ( app-misc/datefudge )"
92
93 S="${WORKDIR}/${P%_pre*}"
94
95 pkg_setup() {
96 if use lzo && use bindist; then
97 ewarn "lzo support is disabled for binary distribution of GnuTLS due to licensing issues."
98 fi
99 }
100
101 src_prepare() {
102 # tests/suite directory is not distributed.
103 sed -e 's|AC_CONFIG_FILES(\[tests/suite/Makefile\])|:|' -i configure.ac
104
105 sed -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' -i doc/Makefile.am
106
107 local dir
108 for dir in m4 lib/m4 libextra/m4; do
109 rm -f "${dir}/lt"* "${dir}/libtool.m4"
110 done
111 find . -name ltmain.sh -exec rm {} \;
112 for dir in . lib libextra; do
113 pushd "${dir}" > /dev/null
114 eautoreconf
115 popd > /dev/null
116 done
117
118 # Use sane .so versioning on FreeBSD.
119 elibtoolize
120 }
121
122 src_configure() {
123 local myconf
124 use bindist && myconf="--without-lzo" || myconf="$(use_with lzo)"
125 [[ "${VALGRIND_TESTS}" != "1" ]] && myconf+=" --disable-valgrind-tests"
126
127 econf --htmldir=/usr/share/doc/${P}/html \
128 $(use_enable cxx) \
129 $(use_enable doc gtk-doc) \
130 $(use_enable guile) \
131 $(use_with !nettle libgcrypt) \
132 $(use_enable nls) \
133 $(use_with zlib) \
134 ${myconf}
135 }
136
137 src_test() {
138 if has_version dev-util/valgrind && [[ "${VALGRIND_TESTS}" != "1" ]]; then
139 elog
140 elog "You can set VALGRIND_TESTS=\"1\" to enable Valgrind tests."
141 elog
142 fi
143
144 default
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "emake install failed"
149
150 dodoc AUTHORS ChangeLog NEWS README THANKS doc/TODO || die "dodoc failed"
151
152 if use doc; then
153 dodoc doc/gnutls.{pdf,ps} || die "dodoc failed"
154 dohtml doc/gnutls.html || die "dohtml failed"
155 fi
156
157 if use examples; then
158 docinto examples
159 dodoc doc/examples/*.c || die "dodoc failed"
160 fi
161 }