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