Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/axtls: axtls-1.5.0.ebuild ChangeLog
Date: Sat, 01 Nov 2014 01:06:50
Message-Id: 20141101010644.5B18892D3@oystercatcher.gentoo.org
1 blueness 14/11/01 01:06:44
2
3 Modified: ChangeLog
4 Added: axtls-1.5.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.36 net-libs/axtls/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/ChangeLog?rev=1.36&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/ChangeLog?rev=1.36&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/ChangeLog?r1=1.35&r2=1.36
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/axtls/ChangeLog,v
20 retrieving revision 1.35
21 retrieving revision 1.36
22 diff -u -r1.35 -r1.36
23 --- ChangeLog 21 Oct 2014 14:20:59 -0000 1.35
24 +++ ChangeLog 1 Nov 2014 01:06:44 -0000 1.36
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/axtls
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/axtls/ChangeLog,v 1.35 2014/10/21 14:20:59 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/axtls/ChangeLog,v 1.36 2014/11/01 01:06:44 blueness Exp $
30 +
31 +*axtls-1.5.0 (01 Nov 2014)
32 +
33 + 01 Nov 2014; Anthony G. Basile <blueness@g.o> +axtls-1.5.0.ebuild:
34 + Version bump
35
36 21 Oct 2014; Anthony G. Basile <blueness@g.o> axtls-1.4.9-r1.ebuild:
37 Stable for ppc64, bug #522818
38
39
40
41 1.1 net-libs/axtls/axtls-1.5.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/axtls-1.5.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/axtls-1.5.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: axtls-1.5.0.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-libs/axtls/axtls-1.5.0.ebuild,v 1.1 2014/11/01 01:06:44 blueness Exp $
51
52 EAPI="5"
53
54 inherit eutils multilib multilib-minimal savedconfig toolchain-funcs user
55
56 ################################################################################
57 # axtls CONFIG MINI-HOWTO
58 #
59 # Note: axtls is highly configurable and uses mconf, like the linux kernel.
60 # You can configure it in a couple of ways:
61 #
62 # 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features
63 # you want, and possibly a lot more.
64 #
65 # 2) You can create your own configuration file by doing
66 #
67 # FEATURES="keepwork" USE="savedconfig -*" emerge axtls
68 # cd /var/tmp/portage/net-libs/axtls*/work/axTLS
69 # make menuconfig
70 #
71 # Now configure axtls as you want. Finally save your config file:
72 #
73 # cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV}
74 #
75 # where ${PV} is the current version. You can then run emerge again with
76 # your configuration by doing
77 #
78 # USE="savedconfig" emerge axtls
79 #
80 ################################################################################
81
82 MY_PN=${PN/tls/TLS}
83
84 DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server"
85 HOMEPAGE="http://axtls.sourceforge.net/"
86 SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz"
87 S="${WORKDIR}/${PN}-code"
88
89 LICENSE="BSD GPL-2"
90 SLOT="0"
91 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86"
92
93 IUSE="httpd cgi-lua cgi-php static static-libs doc"
94
95 # TODO: add ipv6, and c#, java, lua, perl bindings
96 # Currently these all have some issue
97 DEPEND="doc? ( app-doc/doxygen )"
98 RDEPEND="
99 httpd? (
100 cgi-lua? ( dev-lang/lua )
101 cgi-php? ( dev-lang/php[cgi] )
102 )"
103
104 #Note1: static, cgi-* makes no sense if httpd is not given
105 REQUIRED_USE="
106 static? ( httpd )
107 cgi-lua? ( httpd )
108 cgi-php? ( httpd )"
109
110 AXTLS_GROUP="axtls"
111 AXTLS_USER="axtls"
112
113 pkg_setup() {
114 use httpd && {
115 ebegin "Creating axtls user and group"
116 enewgroup ${AXTLS_GROUP}
117 enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP}
118 }
119 }
120
121 src_prepare() {
122 tc-export AR CC
123
124 epatch "${FILESDIR}/explicit-libdir-r1.patch"
125
126 #We want CONFIG_DEBUG to avoid stripping
127 #but not for debugging info
128 sed -i -e 's: -g::' config/Rules.mak || die
129 sed -i -e 's: -g::' config/makefile.conf || die
130
131 multilib_copy_sources
132 }
133
134 use_flag_config() {
135 cp "${FILESDIR}"/config config/.config || die
136
137 #Respect CFLAGS/LDFLAGS
138 sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \
139 config/.config || die
140 sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \
141 config/.config || die
142
143 #The logic is that the default config file enables everything and we disable
144 #here with sed unless a USE flags says to keep it
145 if use httpd; then
146 if ! use static; then
147 sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \
148 config/.config || die
149 fi
150 if ! use cgi-php && ! use cgi-lua; then
151 sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \
152 config/.config || die
153 fi
154 if ! use cgi-php; then
155 sed -i -e 's:,.php::' config/.config || die
156 fi
157 if ! use cgi-lua; then
158 sed -i -e 's:\.lua,::' \
159 -e 's:lua:php:' \
160 -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \
161 config/.config || die
162 fi
163 else
164 sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \
165 config/.config || die
166 fi
167
168 yes "n" | emake -j1 oldconfig > /dev/null || die
169 }
170
171 multilib_src_configure() {
172 #Per-ABI substitutions.
173 sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \
174 Makefile || die
175
176 #Use CC as the host compiler for mconf
177 sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \
178 config/Rules.mak || die
179
180 if use savedconfig; then
181 restore_config config/.config
182 if [[ -f config/.config ]]; then
183 ewarn "Using saved config, all other USE flags ignored"
184 else
185 ewarn "No saved config, seeding with the default"
186 cp "${FILESDIR}"/config config/.config || die
187 fi
188 yes "" | emake -j1 oldconfig > /dev/null || die
189 else
190 use_flag_config
191 fi
192 }
193
194 multilib_src_install() {
195 if multilib_is_native_abi && use savedconfig; then
196 save_config config/.config
197 fi
198
199 emake PREFIX="${ED}/usr" install
200
201 if ! use static-libs; then
202 rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die
203 fi
204
205 # The build system needs to install before it builds docs
206 if multilib_is_native_abi && use doc; then
207 emake docs
208 dodoc -r docsrc/html
209 fi
210 }
211
212 multilib_src_install_all() {
213 if [[ -f "${ED}"/usr/bin/htpasswd ]]; then
214 mv "${ED}"/usr/bin/{,ax}htpasswd || die
215 fi
216
217 if use httpd; then
218 newinitd "${FILESDIR}"/axhttpd.initd axhttpd
219 newconfd "${FILESDIR}"/axhttpd.confd axhttpd
220 fi
221
222 docompress -x /usr/share/doc/${PF}/README
223 dodoc README
224 }