Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/miniupnpc: ChangeLog miniupnpc-1.5.ebuild
Date: Wed, 05 Jan 2011 14:54:04
Message-Id: 20110105145354.AB9B320051@flycatcher.gentoo.org
1 mgorny 11/01/05 14:53:54
2
3 Modified: ChangeLog
4 Added: miniupnpc-1.5.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha12_p8/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.7 net-libs/miniupnpc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/miniupnpc/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/miniupnpc/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/miniupnpc/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 21 Dec 2010 08:49:16 -0000 1.6
24 +++ ChangeLog 5 Jan 2011 14:53:54 -0000 1.7
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/miniupnpc
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v 1.6 2010/12/21 08:49:16 pva Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v 1.7 2011/01/05 14:53:54 mgorny Exp $
31 +
32 +*miniupnpc-1.5 (05 Jan 2011)
33 +
34 + 05 Jan 2011; Michał Górny <mgorny@g.o> +miniupnpc-1.5.ebuild:
35 + Version bump.
36
37 21 Dec 2010; Peter Volkov <pva@g.o> -miniupnpc-1.4.20100609.ebuild,
38 miniupnpc-1.4.20100609-r1.ebuild:
39
40
41
42 1.1 net-libs/miniupnpc/miniupnpc-1.5.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/miniupnpc/miniupnpc-1.5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/miniupnpc/miniupnpc-1.5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: miniupnpc-1.5.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/miniupnpc/miniupnpc-1.5.ebuild,v 1.1 2011/01/05 14:53:54 mgorny Exp $
52
53 EAPI=3
54 SUPPORT_PYTHON_ABIS=1
55 PYTHON_DEPEND="python? 2"
56 RESTRICT_PYTHON_ABIS="3.*"
57
58 inherit distutils eutils toolchain-funcs
59
60 DESCRIPTION="UPnP client library and a simple UPnP client"
61 HOMEPAGE="http://miniupnp.free.fr/"
62 SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="python static-libs"
68
69 DEPEND="sys-apps/lsb-release"
70 RDEPEND=""
71
72 src_prepare() {
73 sed \
74 -e 's/^CFLAGS ?= -O -Wall /CFLAGS += /' \
75 -i Makefile || die
76
77 if use !static-libs; then
78 sed \
79 -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
80 -e '/$(INSTALL) -m 644 $(LIBRARY) $(INSTALLDIRLIB)/d' \
81 -i Makefile || die
82 fi
83
84 use python && distutils_src_prepare
85 }
86
87 src_compile() {
88 emake CC=$(tc-getCC) || die
89
90 use python && distutils_src_compile
91 }
92
93 src_install() {
94 emake \
95 PREFIX="${D}" \
96 INSTALLDIRLIB="${D}usr/$(get_libdir)" \
97 install || die
98
99 dodoc README Changelog.txt || die
100 doman man3/* || die
101
102 use python && distutils_src_install
103 }
104
105 pkg_postinst() {
106 use python && distutils_pkg_postinst
107 }
108
109 pkg_postrm() {
110 use python && distutils_pkg_postrm
111 }