From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde-sunset:master commit in: eclass/
Date: Mon, 30 Nov 2020 02:19:27 +0000 (UTC) [thread overview]
Message-ID: <1606702758.942b00d6540855fb49858f2d983ce5c6b5535b14.asturm@gentoo> (raw)
commit: 942b00d6540855fb49858f2d983ce5c6b5535b14
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 02:15:31 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 02:19:18 2020 +0000
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=942b00d6
poppler.eclass: Remove unused eclass
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
eclass/poppler.eclass | 197 --------------------------------------------------
1 file changed, 197 deletions(-)
diff --git a/eclass/poppler.eclass b/eclass/poppler.eclass
deleted file mode 100644
index 5ca760e1..00000000
--- a/eclass/poppler.eclass
+++ /dev/null
@@ -1,197 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/poppler.eclass,v 1.6 2010/01/03 19:10:49 scarabeus Exp $
-
-# @ECLASS: poppler.eclass
-# @MAINTAINER:
-# Peter Alfredsen <loki_val@gentoo.org>
-# @BLURB: Reduces code duplication in the modularized poppler ebuilds.
-# @DESCRIPTION:
-# Provides an easy template for making modularized poppler-based ebuilds.
-
-inherit base multilib libtool
-
-has 2 ${EAPI} || DEPEND="EAPI-TOO-OLD"
-
-EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install
-
-RDEPEND="
- !app-text/poppler
- !app-text/poppler-bindings
- "
-DEPEND="
- virtual/pkgconfig
- userland_GNU? ( >=sys-apps/findutils-4.4.0 )
- "
-
-
-# @ECLASS-VARIABLE: HOMEPAGE
-# @DESCRIPTION:
-# Default HOMEPAGE
-HOMEPAGE="http://poppler.freedesktop.org/"
-
-# @ECLASS-VARIABLE: SRC_URI
-# @DESCRIPTION:
-# Default SRC_URI
-SRC_URI="http://poppler.freedesktop.org/poppler-${PV}.tar.gz"
-
-# @ECLASS-VARIABLE: S
-# @DESCRIPTION:
-# Default working directory
-S=${WORKDIR}/poppler-${PV}
-
-# @ECLASS-VARIABLE: POPPLER_MODULE
-# @DESCRIPTION:
-# The name of the poppler module. Must be set by the ebuild before inheriting
-# the poppler eclass.
-POPPLER_MODULE=${POPPLER_MODULE}
-
-# @ECLASS-VARIABLE: POPPLER_MODULE_S
-# @DESCRIPTION:
-# The working directory of the poppler module.
-POPPLER_MODULE_S=${S}/${POPPLER_MODULE}
-
-# @FUNCTION: pkg_check_modules_override
-# @USAGE: <GROUP> [package1] [package2]
-# @DESCRIPTION:
-# Will export the appropriate variables to override PKG_CHECK_MODULES autoconf
-# macros, with the string " " by default. If packages are specified, they will
-# be looked up with pkg-config and the appropriate LIBS and CFLAGS substituted.
-# LIBS and CFLAGS can also be specified per-package with the following syntax:
-# @CODE
-# package=LIBS%CFLAGS
-# @CODE
-# = and % have no effect unless both are specified.
-# Here is an example:
-# @CODE
-# pkg_check_modules_override GASH "gtk+-2.0=-jule%" gobject-2.0
-# @CODE
-# The above example will do:
-# @CODE
-# export GASH_CFLAGS+=" -jule"
-# export GASH_LIBS+=" "
-# export GASH_CFLAGS+=" $(pkg-config --cflags gobject-2.0)"
-# export GASH_LIBS+=" $(pkg-config --libs gobject-2.0)"
-# @CODE
-#
-# NOTE: If a package is not found, the string " " will be inserted in place of
-# <GROUP>_CFLAGS and <GROUP>_LIBS
-pkg_check_modules_override() {
- local package
- local group="${1}"
- local packages="${*:2}"
- export ${group}_CFLAGS=" "
- export ${group}_LIBS=" "
-
- if [[ ${#@} -lt 1 ]]
- then
- eerror "${FUNCNAME[0]} requires at least one parameter: GROUP"
- eerror "PKG_CHECK_MODULES(GROUP, package1 package2 etc)"
- die "${FUNCNAME[0]} requires at least one parameter: GROUP"
- fi
-
- for package in $packages
- do
- if [[ ${package/=} != ${package} && ${package/\%} != ${package} ]]
- then
- package_cflag_libs=${package##*=}
- export ${group}_CFLAGS+=" ${package_cflag_libs%%\%*}"
- export ${group}_LIBS+=" ${package_cflag_libs##*\%}"
- else
- if pkg-config --exists $package
- then
- export ${group}_CFLAGS+=" $(pkg-config --cflags $package)"
- export ${group}_LIBS+=" $(pkg-config --libs $package)"
- else
- export ${group}_CFLAGS+=" "
- export ${group}_LIBS+=" "
- fi
- fi
- done
-}
-# @FUNCTION: poppler_src_unpack
-# @USAGE:
-# @DESCRIPTION:
-# Runs unpack ${A}
-poppler_src_unpack() {
- unpack ${A}
-}
-
-# @FUNCTION: poppler_src_prepare
-# @USAGE:
-# @DESCRIPTION:
-# Runs autopatch from base.eclass.
-# Uses sed to replace libpoppler.la references with -lpoppler
-poppler_src_prepare() {
- base_src_prepare
- sed -i \
- -e 's#$(top_builddir)/poppler/libpoppler.la#-lpoppler#' \
- $(find . -type f -name 'Makefile.in') || die "Failed to sed proper lib into Makefile.am"
- elibtoolize
-}
-
-# @FUNCTION: poppler_src_configure
-# @USAGE:
-# @DESCRIPTION:
-# Makes sure we get a uniform Makefile environment by using pkg_check_modules_override to
-# fill out some blanks that configure wants filled. Probably not really needed, but
-# insures against future breakage.
-# Calls econf with some defaults.
-poppler_src_configure() {
- pkg_check_modules_override CAIRO cairo
- pkg_check_modules_override POPPLER_GLIB glib-2.0
- pkg_check_modules_override POPPLER_QT4 QtCore QtGui QtXml
- pkg_check_modules_override POPPLER_QT4_TEST QtTest
- pkg_check_modules_override ABIWORD libxml-2.0
- pkg_check_modules_override GTK_TEST gtk+-2.0 gdk-pixbuf-2.0 libglade-2.0 gthread-2.0
- pkg_check_modules_override POPPLER_GLIB glib-2.0 gobject-2.0
-
- econf --disable-static \
- --enable-poppler-qt4 \
- --enable-poppler-glib \
- --enable-xpdf-headers \
- --enable-libjpeg \
- --enable-libopenjpeg \
- --enable-zlib \
- --enable-splash-output \
- ${POPPLER_CONF}
-}
-
-# @FUNCTION: poppler_src_compile
-# @USAGE:
-# @DESCRIPTION:
-# Removes top_srcdir Makefile to ensure that no accidental recursion happens. The build
-# will just die if it tries to go through top_srcdir.
-# Runs emake "$@" in POPPLER_MODULE_S
-poppler_src_compile() {
- rm -f "${S}"/Makefile* &> /dev/null
- cd "${POPPLER_MODULE_S}" || die "POPPLER_MODULE_S=${POPPLER_MODULE_S} - cd failed"
- einfo "Now in $POPPLER_MODULE_S"
- emake "$@" || die "emake failed"
-}
-
-# @FUNCTION: poppler_src_install
-# @USAGE:
-# @DESCRIPTION:
-# Runs emake DESTDIR="${D}" ${@:-install} in POPPLER_MODULE_S
-# Removes .la files.
-poppler_src_install() {
- cd "${POPPLER_MODULE_S}"
- emake DESTDIR="${D}" ${@:-install} || die "make install failed"
- for pfile in "${POPPLER_PKGCONFIG[@]}"
- do
- insinto /usr/$(get_libdir)/pkgconfig
- if [[ ${pfile/=} != ${pfile} ]]
- then
- if use ${pfile%=*}
- then
- pfile=${pfile#*=}
- else
- pfile=false
- fi
- fi
- [[ ${pfile} != "false" ]] && doins "${S}/${pfile}"
- done
-
- find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
-}
next reply other threads:[~2020-11-30 2:19 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 2:19 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-27 15:48 [gentoo-commits] proj/kde-sunset:master commit in: eclass/ Andreas Sturmlechner
2021-04-27 15:48 Andreas Sturmlechner
2020-12-07 20:53 Andreas Sturmlechner
2020-11-30 2:19 Andreas Sturmlechner
2020-11-30 2:19 Andreas Sturmlechner
2020-11-30 2:19 Andreas Sturmlechner
2020-11-30 2:19 Andreas Sturmlechner
2020-09-20 12:06 Andreas Sturmlechner
2020-08-25 14:59 Andreas Sturmlechner
2020-08-25 14:51 Andreas Sturmlechner
2020-08-23 19:46 Andreas Sturmlechner
2020-08-16 20:05 Andreas Sturmlechner
2020-08-13 14:50 Andreas Sturmlechner
2020-08-13 14:50 Andreas Sturmlechner
2020-08-13 14:50 Andreas Sturmlechner
2020-08-13 14:50 Andreas Sturmlechner
2018-09-12 20:41 Andreas Sturmlechner
2018-06-30 8:45 Andreas Sturmlechner
2018-06-30 8:45 Andreas Sturmlechner
2018-06-20 12:08 Andreas Sturmlechner
2018-05-31 20:31 Andreas Sturmlechner
2018-05-31 18:30 Andreas Sturmlechner
2018-05-31 18:30 Andreas Sturmlechner
2018-05-03 12:30 Andreas Sturmlechner
2018-04-10 13:32 Andreas Sturmlechner
2018-04-06 0:53 Andreas Sturmlechner
2016-12-17 19:08 Johannes Huber
2016-08-03 20:18 Johannes Huber
2016-04-24 7:07 Lars Wendler
2015-04-28 19:16 Ian Stakenvicius
2013-11-13 22:24 Lars Wendler
2011-05-05 21:11 Ladislav Láska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1606702758.942b00d6540855fb49858f2d983ce5c6b5535b14.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox