Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libsvgtiny: ChangeLog libsvgtiny-0.0.2.ebuild
Date: Thu, 28 Feb 2013 07:50:10
Message-Id: 20130228075000.869842171D@flycatcher.gentoo.org
1 xmw 13/02/28 07:50:00
2
3 Modified: ChangeLog libsvgtiny-0.0.2.ebuild
4 Log:
5 netsurf eclass preparation.
6
7 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
8
9 Revision Changes Path
10 1.5 media-libs/libsvgtiny/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsvgtiny/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsvgtiny/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsvgtiny/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 18 Jul 2012 15:38:34 -0000 1.4
23 +++ ChangeLog 28 Feb 2013 07:50:00 -0000 1.5
24 @@ -1,6 +1,9 @@
25 # ChangeLog for media-libs/libsvgtiny
26 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/ChangeLog,v 1.4 2012/07/18 15:38:34 xmw Exp $
28 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/ChangeLog,v 1.5 2013/02/28 07:50:00 xmw Exp $
30 +
31 + 28 Feb 2013; Michael Weber <xmw@g.o> libsvgtiny-0.0.2.ebuild:
32 + netsurf eclass preparation.
33
34 18 Jul 2012; Michael Weber <xmw@g.o>
35 -libsvgtiny-0.0.2_pre20120629.ebuild:
36
37
38
39 1.2 media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild?r1=1.1&r2=1.2
44
45 Index: libsvgtiny-0.0.2.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- libsvgtiny-0.0.2.ebuild 18 Jul 2012 15:32:21 -0000 1.1
52 +++ libsvgtiny-0.0.2.ebuild 28 Feb 2013 07:50:00 -0000 1.2
53 @@ -1,8 +1,8 @@
54 -# Copyright 1999-2012 Gentoo Foundation
55 +# Copyright 1999-2013 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild,v 1.1 2012/07/18 15:32:21 xmw Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild,v 1.2 2013/02/28 07:50:00 xmw Exp $
59
60 -EAPI=4
61 +EAPI=5
62
63 inherit multilib toolchain-funcs
64
65 @@ -13,12 +13,35 @@
66 LICENSE="MIT"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm"
69 -IUSE="static-libs"
70 +IUSE="debug static-libs"
71
72 RDEPEND=""
73 DEPEND="dev-util/gperf
74 virtual/pkgconfig"
75
76 +pkg_setup(){
77 + netsurf_src_prepare() {
78 + sed -e "/^CCOPT :=/s:=.*:=:" \
79 + -e "/^CCNOOPT :=/s:=.*:=:" \
80 + -e "/^CCDBG :=/s:=.*:=:" \
81 + -i build/makefiles/Makefile.{gcc,clang}
82 + sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \
83 + -i Makefile || die
84 + sed -e "/^libdir/s:/lib:/$(get_libdir):g" \
85 + -i ${NETSURF_PKGCONFIG:-${PN}}.pc.in || die
86 + }
87 + netsurf_src_configure() {
88 + echo "Q := " >> Makefile.config
89 + echo "CC := $(tc-getCC)" >> Makefile.config
90 + echo "AR := $(tc-getAR)" >> Makefile.config
91 + }
92 +
93 + netsurf_make() {
94 + emake COMPONENT_TYPE=lib-shared BUILD=$(usex debug debug release) "$@"
95 + use static-libs && \
96 + emake COMPONENT_TYPE=lib-static BUILD=$(usex debug debug release) "$@"
97 + }
98 +}
99 src_unpack() {
100 default
101 mv netsurf-2.9/${P} . || die
102 @@ -26,30 +49,23 @@
103 }
104
105 src_prepare() {
106 - sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \
107 - -i Makefile || die
108 - sed -e "/^libdir/s:/lib:/$(get_libdir):g" \
109 - -i ${PN}.pc.in || die
110 - echo "Q := " >> Makefile.config.override
111 - echo "CC := $(tc-getCC)" >> Makefile.config.override
112 - echo "AR := $(tc-getAR)" >> Makefile.config.override
113 + netsurf_src_prepare
114 +}
115 +
116 +src_configure() {
117 + netsurf_src_configure
118 }
119
120 src_compile() {
121 - emake COMPONENT_TYPE=lib-shared
122 - use static-libs && \
123 - emake COMPONENT_TYPE=lib-static
124 + netsurf_make
125 }
126
127 src_test() {
128 - emake COMPONENT_TYPE=lib-shared test
129 - use static-libs && \
130 - emake COMPONENT_TYPE=lib-static test
131 + netsurf_make test
132 }
133
134 src_install() {
135 - emake DESTDIR="${D}" PREFIX=/usr COMPONENT_TYPE=lib-shared install
136 - use static-libs && \
137 - emake DESTDIR="${D}" PREFIX=/usr COMPONENT_TYPE=lib-static install
138 + netsurf_make DESTDIR="${D}" PREFIX=/usr install
139 +
140 dodoc README
141 }