summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-06-23 16:42:55 +0000
committerMichael Weber <xmw@gentoo.org>2013-06-23 16:42:55 +0000
commit1b8763502753b8a2906758a563792be7b5c1c962 (patch)
treea3c4e5821026eb0c7e5c935d64519c7ccb6e0854 /dev-libs/libparserutils
parentMigrate to netsurf.eclass (diff)
downloadgentoo-2-1b8763502753b8a2906758a563792be7b5c1c962.tar.gz
gentoo-2-1b8763502753b8a2906758a563792be7b5c1c962.tar.bz2
gentoo-2-1b8763502753b8a2906758a563792be7b5c1c962.zip
Migrate to netsurf.eclass
(Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'dev-libs/libparserutils')
-rw-r--r--dev-libs/libparserutils/ChangeLog5
-rw-r--r--dev-libs/libparserutils/libparserutils-0.1.2.ebuild123
2 files changed, 6 insertions, 122 deletions
diff --git a/dev-libs/libparserutils/ChangeLog b/dev-libs/libparserutils/ChangeLog
index c93ae665dff4..fc26af188422 100644
--- a/dev-libs/libparserutils/ChangeLog
+++ b/dev-libs/libparserutils/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-libs/libparserutils
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libparserutils/ChangeLog,v 1.9 2013/06/17 17:01:40 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libparserutils/ChangeLog,v 1.10 2013/06/23 16:42:55 xmw Exp $
+
+ 23 Jun 2013; Michael Weber <xmw@gentoo.org> libparserutils-0.1.2.ebuild:
+ Migrate to netsurf.eclass
*libparserutils-0.1.2 (17 Jun 2013)
diff --git a/dev-libs/libparserutils/libparserutils-0.1.2.ebuild b/dev-libs/libparserutils/libparserutils-0.1.2.ebuild
index 47a0e04d3cd5..faca71aa4756 100644
--- a/dev-libs/libparserutils/libparserutils-0.1.2.ebuild
+++ b/dev-libs/libparserutils/libparserutils-0.1.2.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libparserutils/libparserutils-0.1.2.ebuild,v 1.1 2013/06/17 17:01:40 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libparserutils/libparserutils-0.1.2.ebuild,v 1.2 2013/06/23 16:42:55 xmw Exp $
EAPI=5
-inherit base flag-o-matic toolchain-funcs multilib-minimal
+inherit flag-o-matic netsurf
DESCRIPTION="library for building efficient parsers, written in C"
HOMEPAGE="http://www.netsurf-browser.org/projects/libparserutils/"
@@ -14,131 +14,12 @@ SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE="iconv test"
-RDEPEND=""
DEPEND="test? ( dev-lang/perl )"
DOCS=( README docs/Todo )
-### future context of netsurf.eclass
-
-NETSURF_BUILDSYSTEM="${NETSURF_BUILDSYSTEM:-buildsystem-1.0}"
-SRC_URI=${SRC_URI:-http://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz}
-SRC_URI+="
- http://download.netsurf-browser.org/libs/releases/${NETSURF_BUILDSYSTEM}.tar.gz -> netsurf-${NETSURF_BUILDSYSTEM}.tar.gz"
-IUSE+=" debug static-libs"
-if has doc ${IUSE} ; then
- DEPEND+="
- doc? ( app-doc/doxygen )"
-fi
-DEPEND+="
- virtual/pkgconfig"
-pkg_setup(){
- netsurf_src_prepare() {
- if [ -f docs/doxygen.conf ] ; then
- if ! has doc ${IUSE} ; then
- if [ -z "${NETSURF_IGNORE_DOXYGEN}" ] ; then
- die "Missing IUSE=doc"
- fi
- fi
- fi
-
- base_src_prepare
-
- multilib_copy_sources
- }
-
- netsurf_src_configure() {
- netsurf_makeconf=(
- NSSHARED=${WORKDIR}/${NETSURF_BUILDSYSTEM}
- Q=
- CCOPT=
- CCNOOPT=
- CCDBG=
- LDDBG=
- AR="$(tc-getAR)"
- BUILD=$(usex debug debug release)
- DESTDIR="${D}"
- PREFIX="${EROOT}"usr
- )
-
- multilib-minimal_src_configure
- }
-
- netsurf_src_compile() {
- multilib-minimal_src_compile
-
- if has doc ${IUSE} ; then
- use doc && netsurf_make docs
- fi
- }
-
- netsurf_src_test() {
- multilib-minimal_src_test
- }
-
- netsurf_src_install() {
- multilib-minimal_src_install
- }
-
- multilib_src_configure() {
- sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \
- -i Makefile || die
- if [ -f ${PN}.pc.in ] ; then
- sed -e "/^libdir/s:/lib:/$(get_libdir):g" \
- -i ${PN}.pc.in || die
- fi
- }
-
- netsurf_make() {
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" "${netsurf_makeconf[@]}" \
- COMPONENT_TYPE=lib-shared "$@"
- if use static-libs ; then
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" "${netsurf_makeconf[@]}" \
- COMPONENT_TYPE=lib-static "$@"
- fi
- }
-
- multilib_src_compile() {
- netsurf_make
- }
-
- multilib_src_test() {
- netsurf_make test
- }
-
- multilib_src_test() {
- netsurf_make test
- }
-
- multilib_src_install() {
- netsurf_make install
- }
-
- multilib_src_install_all() {
- if has doc ${IUSE} ; then
- use doc && dohtml -r build/docs/html/*
- fi
- }
-}
-
-src_prepare() {
- netsurf_src_prepare
-}
-
src_configure() {
netsurf_src_configure
append-cflags "-D$(usex iconv WITH WITHOUT)_ICONV_FILTER"
}
-
-src_compile() {
- netsurf_src_compile
-}
-
-src_test() {
- netsurf_src_test
-}
-
-src_install() {
- netsurf_src_install
-}