diff options
author | Michael Weber <xmw@gentoo.org> | 2013-02-28 07:50:00 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2013-02-28 07:50:00 +0000 |
commit | 72d76edc953334076e8145e9845f8fd39fc0c30c (patch) | |
tree | cd42a4ea11a2f47b7755213c6032bcf0cf7d3e48 | |
parent | whitespace (diff) | |
download | gentoo-2-72d76edc953334076e8145e9845f8fd39fc0c30c.tar.gz gentoo-2-72d76edc953334076e8145e9845f8fd39fc0c30c.tar.bz2 gentoo-2-72d76edc953334076e8145e9845f8fd39fc0c30c.zip |
netsurf eclass preparation.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
-rw-r--r-- | media-libs/libsvgtiny/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild | 56 |
2 files changed, 41 insertions, 22 deletions
diff --git a/media-libs/libsvgtiny/ChangeLog b/media-libs/libsvgtiny/ChangeLog index d6daeca6c272..e73ff1bf2d88 100644 --- a/media-libs/libsvgtiny/ChangeLog +++ b/media-libs/libsvgtiny/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-libs/libsvgtiny -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/ChangeLog,v 1.4 2012/07/18 15:38:34 xmw Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/ChangeLog,v 1.5 2013/02/28 07:50:00 xmw Exp $ + + 28 Feb 2013; Michael Weber <xmw@gentoo.org> libsvgtiny-0.0.2.ebuild: + netsurf eclass preparation. 18 Jul 2012; Michael Weber <xmw@gentoo.org> -libsvgtiny-0.0.2_pre20120629.ebuild: diff --git a/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild b/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild index 88309a6c2df4..e9b8da2bf7da 100644 --- a/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild +++ b/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild,v 1.1 2012/07/18 15:32:21 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsvgtiny/libsvgtiny-0.0.2.ebuild,v 1.2 2013/02/28 07:50:00 xmw Exp $ -EAPI=4 +EAPI=5 inherit multilib toolchain-funcs @@ -13,12 +13,35 @@ SRC_URI="http://download.netsurf-browser.org/netsurf/releases/source-full/netsur LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm" -IUSE="static-libs" +IUSE="debug static-libs" RDEPEND="" DEPEND="dev-util/gperf virtual/pkgconfig" +pkg_setup(){ + netsurf_src_prepare() { + sed -e "/^CCOPT :=/s:=.*:=:" \ + -e "/^CCNOOPT :=/s:=.*:=:" \ + -e "/^CCDBG :=/s:=.*:=:" \ + -i build/makefiles/Makefile.{gcc,clang} + sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \ + -i Makefile || die + sed -e "/^libdir/s:/lib:/$(get_libdir):g" \ + -i ${NETSURF_PKGCONFIG:-${PN}}.pc.in || die + } + netsurf_src_configure() { + echo "Q := " >> Makefile.config + echo "CC := $(tc-getCC)" >> Makefile.config + echo "AR := $(tc-getAR)" >> Makefile.config + } + + netsurf_make() { + emake COMPONENT_TYPE=lib-shared BUILD=$(usex debug debug release) "$@" + use static-libs && \ + emake COMPONENT_TYPE=lib-static BUILD=$(usex debug debug release) "$@" + } +} src_unpack() { default mv netsurf-2.9/${P} . || die @@ -26,30 +49,23 @@ src_unpack() { } src_prepare() { - sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \ - -i Makefile || die - sed -e "/^libdir/s:/lib:/$(get_libdir):g" \ - -i ${PN}.pc.in || die - echo "Q := " >> Makefile.config.override - echo "CC := $(tc-getCC)" >> Makefile.config.override - echo "AR := $(tc-getAR)" >> Makefile.config.override + netsurf_src_prepare +} + +src_configure() { + netsurf_src_configure } src_compile() { - emake COMPONENT_TYPE=lib-shared - use static-libs && \ - emake COMPONENT_TYPE=lib-static + netsurf_make } src_test() { - emake COMPONENT_TYPE=lib-shared test - use static-libs && \ - emake COMPONENT_TYPE=lib-static test + netsurf_make test } src_install() { - emake DESTDIR="${D}" PREFIX=/usr COMPONENT_TYPE=lib-shared install - use static-libs && \ - emake DESTDIR="${D}" PREFIX=/usr COMPONENT_TYPE=lib-static install + netsurf_make DESTDIR="${D}" PREFIX=/usr install + dodoc README } |