summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/64-bit.eclass7
-rw-r--r--eclass/aolserver.eclass58
-rw-r--r--eclass/check-kernel.eclass76
-rw-r--r--eclass/commonbox.eclass176
-rw-r--r--eclass/db4-fix.eclass47
-rw-r--r--eclass/debug.eclass12
-rw-r--r--eclass/ebook.eclass108
-rw-r--r--eclass/embassy-2.10.eclass81
-rw-r--r--eclass/embassy-2.9.eclass79
-rw-r--r--eclass/games-etmod.eclass155
-rw-r--r--eclass/games-ut2k4mod.eclass130
-rw-r--r--eclass/gcc.eclass9
-rw-r--r--eclass/gnustep-funcs.eclass327
-rw-r--r--eclass/gnustep-old.eclass147
-rw-r--r--eclass/gnustep.eclass124
-rw-r--r--eclass/gst-plugins.eclass201
-rw-r--r--eclass/gtk-engines.eclass264
-rw-r--r--eclass/gtk-engines2.eclass135
-rw-r--r--eclass/gtk-sharp-component.eclass195
-rw-r--r--eclass/iiimf.eclass61
-rw-r--r--eclass/inherit.eclass12
-rw-r--r--eclass/jakarta-commons.eclass5
-rw-r--r--eclass/java-gnome.eclass85
-rw-r--r--eclass/java-pkg.eclass496
-rw-r--r--eclass/java-utils.eclass111
-rw-r--r--eclass/java-wsdp.eclass3
-rw-r--r--eclass/java.eclass141
-rw-r--r--eclass/kde-base.eclass11
-rw-r--r--eclass/kde-dist.eclass31
-rw-r--r--eclass/kde-i18n.eclass7
-rw-r--r--eclass/kde-source.eclass3
-rw-r--r--eclass/kernel-mod.eclass238
-rw-r--r--eclass/kernel.eclass213
-rw-r--r--eclass/kmod.eclass324
-rw-r--r--eclass/koffice-i18n.eclass7
-rw-r--r--eclass/mailer.eclass85
-rw-r--r--eclass/matrox.eclass107
-rw-r--r--eclass/motif.eclass1
-rw-r--r--eclass/mozconfig.eclass328
-rw-r--r--eclass/mozilla.eclass355
-rw-r--r--eclass/myth.eclass96
-rw-r--r--eclass/nxserver-1.3.2.eclass151
-rw-r--r--eclass/nxserver-1.4.eclass161
-rw-r--r--eclass/nxserver.eclass141
-rw-r--r--eclass/nxserver_1.5.eclass243
-rw-r--r--eclass/pcmcia.eclass128
-rw-r--r--eclass/perl-post.eclass11
-rw-r--r--eclass/php-2.eclass7
-rw-r--r--eclass/php-ext-base.eclass46
-rw-r--r--eclass/php-ext-pecl.eclass27
-rw-r--r--eclass/php-ext-source.eclass29
-rw-r--r--eclass/php-ext.eclass56
-rw-r--r--eclass/php-lib.eclass25
-rw-r--r--eclass/php-sapi.eclass43
-rw-r--r--eclass/php.eclass7
-rw-r--r--eclass/php4_4-sapi.eclass688
-rw-r--r--eclass/php5-sapi-r1.eclass52
-rw-r--r--eclass/php5-sapi-r2.eclass52
-rw-r--r--eclass/php5-sapi-r3.eclass57
-rw-r--r--eclass/php5-sapi.eclass52
-rw-r--r--eclass/php5_0-sapi.eclass71
-rw-r--r--eclass/php5_1-sapi.eclass718
-rw-r--r--eclass/tetex-2.eclass7
-rw-r--r--eclass/unipatch-001.eclass317
-rw-r--r--eclass/webapp-apache.eclass110
-rw-r--r--eclass/wxlib.eclass29
-rw-r--r--eclass/x11.eclass160
-rw-r--r--eclass/xfce4.eclass226
-rw-r--r--eclass/xfce42.eclass63
-rw-r--r--eclass/xfce44.eclass119
-rw-r--r--eclass/xfree.eclass13
-rw-r--r--eclass/xmms-plugin.eclass115
72 files changed, 174 insertions, 8801 deletions
diff --git a/eclass/64-bit.eclass b/eclass/64-bit.eclass
deleted file mode 100644
index 5e3fd8de496f..000000000000
--- a/eclass/64-bit.eclass
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/64-bit.eclass,v 1.9 2008/02/19 05:20:45 vapier Exp $
-
-# @DEAD
-
-ewarn "Please fix your package (${PF}) to not use 64-bit.eclass"
diff --git a/eclass/aolserver.eclass b/eclass/aolserver.eclass
index e23cd7962fbc..e7fb181f4779 100644
--- a/eclass/aolserver.eclass
+++ b/eclass/aolserver.eclass
@@ -1,55 +1,7 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/aolserver.eclass,v 1.8 2005/07/11 15:08:06 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/aolserver.eclass,v 1.9 2009/11/30 04:19:36 abcd Exp $
-# Authors:
-# Ian Leitch <port001@gentoo.org>
-
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst
-
-DEPEND="www-servers/aolserver"
-RDEPEND="${DEPEND}"
-
-NS_CONF="/usr/share/aolserver" # /include/ is implied by the Makefile
-NS_BASE="/usr/lib/aolserver"
-
-SRC_URI="mirror://sourceforge/aolserver/${P}.tar.gz"
-HOMEPAGE="http://www.aolserver.com"
-LICENSE="MPL-1.1"
-SLOT="0"
-
-aolserver_src_compile() {
-
- emake NSBUILD=1 INST=${NS_CONF} AOLSERVER=${NS_CONF} ${MAKE_FLAGS} || die "emake failed"
-}
-
-aolserver_src_install() {
-
- find ${S} -type d -name CVS -prune | xargs rm -rf
-
- into ${NS_BASE}
-
- if [[ -e "${S}/${PN}.so" ]] ; then
- dobin ${S}/${PN}.so
- fi
-
- if [[ -e "${S}/lib${PN}.so" ]] ; then
- dolib.so ${S}/lib${PN}.so
- fi
-
- for mod in ${TCL_MODS} ; do
- insinto /usr/lib/aolserver/modules/tcl
- doins ${mod}
- done
-
- for doc in ${DOCS} ; do
- dodoc ${doc}
- done
-}
-
-aolserver_pkg_postinst() {
-
- echo
- einfo "To enable the use of ${PN} you must add the module to your AOLServer configuration"
- echo
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/check-kernel.eclass b/eclass/check-kernel.eclass
index c2fbe0380292..fcc442f0d9a1 100644
--- a/eclass/check-kernel.eclass
+++ b/eclass/check-kernel.eclass
@@ -1,73 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/check-kernel.eclass,v 1.8 2005/07/11 15:08:06 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/check-kernel.eclass,v 1.9 2009/11/30 04:19:36 abcd Exp $
-# Author: Martin Schlemmer <azarah@gentoo.org>
-# Eclass'd by: Seemant Kulleen <seemant@gentoo.org>
-#
-# The check-kernel eclass is designed to detect the kernel sources and
-# report info on the versions
-
-
-DEPEND="sys-apps/gawk"
-
-check_version_h() {
- if [ ! -f "${ROOT}/usr/src/linux/include/linux/version.h" ]
- then
- eerror "Please verify that your /usr/src/linux symlink is pointing"
- eerror "to your current kernel sources, and that you did run:"
- eerror
- eerror " # make dep"
- eerror
- eerror "(${ROOT}/usr/src/linux/include/linux/version.h does not exist)"
- die "/usr/src/linux symlink not setup!"
- fi
-}
-
-get_KV_info() {
- check_version_h
-
- # Get the kernel version of sources in /usr/src/linux ...
- export KV_full="$(awk '/UTS_RELEASE/ { gsub("\"", "", $3); print $3 }' \
- "${ROOT}/usr/src/linux/include/linux/version.h")"
- export KV_major="$(echo "${KV_full}" | cut -d. -f1)"
- export KV_minor="$(echo "${KV_full}" | cut -d. -f2)"
- export KV_micro="$(echo "${KV_full}" | cut -d. -f3 | sed -e 's:[^0-9].*::')"
-}
-
-is_2_4_kernel() {
- get_KV_info
-
- if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 4 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-is_2_5_kernel() {
- get_KV_info
-
- if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 5 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-is_2_6_kernel() {
- get_KV_info
-
- if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel_supports_modules() {
- grep '^CONFIG_MODULES=y$' ${ROOT}/usr/src/linux/include/linux/autoconf.h >& /dev/null
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/commonbox.eclass b/eclass/commonbox.eclass
deleted file mode 100644
index dbf7ab908c69..000000000000
--- a/eclass/commonbox.eclass
+++ /dev/null
@@ -1,176 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/commonbox.eclass,v 1.32 2006/10/29 22:22:34 omp Exp $
-#
-# Author: Seemant Kulleen <seemant@gentoo.org>
-#
-# The commonbox eclass is designed to allow easier installation of the box
-# window managers such as blackbox and fluxbox and commonbox
-# The common utilities of those window managers get installed in the
-# commonbox-utils dependency, and default styles with the commonbox-styles
-# utility. They all share the /usr/share/commonbox directory now.
-#
-#
-# THIS ECLASS IS DEPRECATED. PLEASE DO NOT USE IT.
-
-
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst
-
-IUSE="nls kde gnome xinerama truetype"
-
-DEPEND="dev-util/pkgconfig
- =sys-apps/sed-4*"
-
-RDEPEND="nls? ( sys-devel/gettext )
- x11-themes/commonbox-styles"
-
-PROVIDE="virtual/blackbox"
-
-myconf=""
-MYCONF=""
-mydoc=""
-BOOTSTRAP=""
-FORCEXFT=""
-
-if [ -z "${MYBIN}" ]
-then
- MYBIN="${PN}"
-fi
-
-commonprep() {
-
- sed -i -e 's:data ::' ${S}/Makefile.am
-
- sed -i -e 's:bsetbg::; s:bsetroot::' ${S}/util/Makefile.am
-
- sed -i -e 's:bsetroot.1::; s:bsetbg.1::' ${S}/doc/Makefile.am
-
- for i in `find ${S} -name 'Makefile.am'`
- do
- sed -i -e 's:$(pkgdatadir)/nls:/usr/share/locale:' ${i}
- done
-
- for i in `find ${S}/nls -name 'Makefile.am'`
- do
- sed -i -e "s:blackbox.cat:${MYBIN}.cat:g; s:${PN}.cat:${MYBIN}.cat:g" ${i}
- done
-
- for i in `find ${S}/src -name 'Makefile*'`
- do
- sed -i \
- -e "s:/styles/Results:/styles/Fury-NG:" \
- -e "s:/styles/mbdtex:/styles/Fury-NG:" \
- -e "s:/styles/Clean:/styles/Fury-NG:" \
- ${i}
- done
-
-}
-
-commonbox_src_compile() {
-
- commonprep
-
- if [ -z "${BOOTSTRAP}" ]
- then
- aclocal
- automake
- autoconf
- else
- ./bootstrap
- fi
-
- use nls \
- && myconf="${myconf} --enable-nls" \
- || myconf="${myconf} --disable-nls"
-
- use kde \
- && myconf="${myconf} --enable-kde" \
- || myconf="${myconf} --disable-kde"
-
- use gnome \
- && myconf="${myconf} --enable-gnome" \
- || myconf="${myconf} --disable-gnome"
-
- use xinerama \
- && myconf="${myconf} --enable-xinerama" \
- || myconf="${myconf} --disable-xinerama"
-
- use truetype \
- && myconf="${myconf} --enable-xft" \
- || myconf="${myconf} --disable-xft"
-
- if [ -z "${MYCONF}" ]
- then
- econf \
- --sysconfdir=/etc/X11/${MYBIN} \
- --datadir=/usr/share/commonbox \
- ${myconf} || die
- else
- econf \
- --sysconfdir=/etc/X11/${MYBIN} \
- --datadir=/usr/share/commonbox \
- ${myconf} ${MYCONF} || die
- fi
-
- [ ! -z "${FORCEXFT}" ] && echo "#define XFT 1" >> ${S}/config.h
-
- emake \
- pkgdatadir=/usr/share/commonbox || die
-
-}
-
-
-commonbox_src_install() {
-
- dodir /usr/share/commonbox/${PN}
-
- make DESTDIR=${D} install || die
-
- # move the ${PN} binary to ${MYBIN}
-
- if [ "${MYBIN}" != "${PN}" ]
- then
- mv ${D}/usr/bin/${PN} ${D}/usr/bin/${MYBIN}
-
- # same to manpage
- rm ${D}/usr/share/man/man1/${PN}.1
- mv doc/${PN}.1 doc/${MYBIN}.1
- doman doc/${MYBIN}.1
- fi
-
- dodoc README* AUTHORS TODO* ${mydoc}
-
- # move nls stuff
- use nls && ( \
- dodir /usr/share/commonbox/${MYBIN}
- mv ${D}/usr/share/${PN}/nls ${D}/usr/share/commonbox/${MYBIN}
- )
-
- rmdir ${D}/usr/share/${MYBIN}
-
- dodir /etc/X11/Sessions
- echo "/usr/bin/${MYBIN}" > ${D}/etc/X11/Sessions/${MYBIN}
- fperms a+x /etc/X11/Sessions/${MYBIN}
-}
-
-commonbox_pkg_postinst() {
- #notify user about the new share dir
- if [ -d /usr/share/commonbox ]
- then
- einfo
- einfo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- einfo "! ${MYBIN} no longer uses /usr/share/${MYBIN} as the !"
- einfo "! default share directory to contain styles and menus. !"
- einfo "! The default directory is now /usr/share/commonbox !"
- einfo "! Please move any files in /usr/share/${MYBIN} that you !"
- einfo "! wish to keep (personal styles and your menu) into the !"
- einfo "! new directory and modify your menu files to point all !"
- einfo "! listed paths to the new directory. !"
- einfo "! Also, be sure to update the paths in each user's !"
- einfo "! config file found in their home directory. !"
- einfo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- einfo
- fi
-
- commonbox-menugen -kg
-}
diff --git a/eclass/db4-fix.eclass b/eclass/db4-fix.eclass
index 4f4e84355f98..0a0b2ed97d9a 100644
--- a/eclass/db4-fix.eclass
+++ b/eclass/db4-fix.eclass
@@ -1,44 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/db4-fix.eclass,v 1.6 2005/07/06 20:23:20 agriffis Exp $
-#
-# Author: Paul de Vrieze <pauldv@gentoo.org>
-#
-# This eclass is meant to fix configure scripts to work with our versioned db4
-#
-# the dodb4-fix script should be run from the directory where autoconf needs to
-# be run from
+# $Header: /var/cvsroot/gentoo-x86/eclass/db4-fix.eclass,v 1.7 2009/11/30 04:19:36 abcd Exp $
-
-DEPEND="sys-apps/sed"
-
-DESCRIPTION="Based on the ${ECLASS} eclass"
-
-EDB4_FIX_VERSION=0.1
-
-dodb4-fix () {
- postfix=`grep "#define.db_create" /usr/include/db4/db.h \
- |cut -d " " -f 2|sed -e "s,db_create,,"`
-
- if [ $# -ne 1 ];then
- die "This function needs as argument the name of the file to fix"
- fi
- if has_version =sys-libs/db-4*; then
- if [ "`basename $1`" == "configure" ]; then
- die "sorry configure fixing is not supported yet"
- else
- einfo "fixing $1 to work with db-4 by appending ${postfix}"
- cp $1 ${1}.cpy
- cat ${1}.cpy \
- |sed -e "s;\( *AC_CHECK_LIB( *db-?4? *, db_[^ ,]*\);\1${postfix};" \
- -e "s/\(-l\|[ \t]\)\(db3\)\([ \t]\)/\1db-3\3/g" \
- >${1} || die "sed failed"
-# -e "s/\( *AC_CHECK_LIB([^,]*, db_create\)\( *,\)/\1${postfix}\2/" \
-
- autoconf
- fi
- else
- einfo "db4 not found, so not applying db4 fixes"
- fi
-
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/debug.eclass b/eclass/debug.eclass
deleted file mode 100644
index 9c0512758f06..000000000000
--- a/eclass/debug.eclass
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.35 2007/01/07 00:41:55 flameeyes Exp $
-
-# STOP USING THIS ECLASS
-# It was broken, and debug useflag should _not_ touch CFLAGS to start with.
-# See http://bugs.gentoo.org/show_bug.cgi?id=55708 for info about this
-# and http://www.gentoo.org/proj/en/qa/backtraces.xml to learn how to get
-# a debug build.
-if [[ ${EBUILD_PHASE} != *rm ]]; then
- ewarn "QA Notice: The package ${CATEGORY}/${PF} still uses the broken debug.eclass"
-fi
diff --git a/eclass/ebook.eclass b/eclass/ebook.eclass
index 0ee94cd4d3c3..bc30336d4ab8 100644
--- a/eclass/ebook.eclass
+++ b/eclass/ebook.eclass
@@ -1,105 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ebook.eclass,v 1.26 2006/10/14 20:27:21 swegener Exp $
-#
-# Author Francisco Gimeno <kikov@fco-gimeno.com>
-# Mantainer José Alberto Suárez López <bass@gentoo.org>
-#
-# Latest changes thanks to Kris Verbeeck
-# The ebook eclass defines some default functions and variables to
-# install ebooks.
+# $Header: /var/cvsroot/gentoo-x86/eclass/ebook.eclass,v 1.27 2009/11/30 04:19:36 abcd Exp $
-HOMEPAGE="http://lidn.sourceforge.net"
-
-IUSE="kde"
-SLOT="0"
-LICENSE="OPL"
-KEYWORDS="x86 ppc amd64"
-
-# ebook eclass user guide:
-# -vars
-#
-# EBOOKNAME: the main name of the book ( without versions ), i.e: gtk
-# Required
-# EBOOKVERSION: the version of the book, i.e: 1.2
-# Required
-# SRC: the main file to download. Default: ${EBOOKNAME}-${EBOOKVERSION}
-# EBOOKDESTDIR: directory inside ${DEVHELPROOT}/books/${EBOOKDIR} where is
-# installed the book. By default: ${EBOOKNAME}-${EBOOKVERSION}
-# ( sometimes it is only ${EBOOKNAME} so you will need to modify it )
-# EBOOKSRCDIR: directory where is the unpacked book in html
-# BOOKDEVHELPFILE: book.devhelp is copied with the name
-# ${EBOOKNAME}-${EBOOKVERSION} by default.
-# BOOKDESTDIR: directory to put into the ebook in html. By default:
-# ${EBOOKNAME}-${EBOOKVERSION}.
-# NOVERSION: if it's not empty, then, remove -${EBOOKVERSION} from all
-# vars...
-# DEVHELPROOT: usually usr/share/devhelp
-# EBOOKFROMDIR: you can set the from dir, usually ${S}.
-
-if [ "${NOVERSION}" = "" ]; then
- _src="${EBOOKNAME}-${EBOOKVERSION}"
-else
- _src="${EBOOKNAME}"
-fi
-_ebookdestdir="${_src}"
-_ebooksrcdir="${_src}"
-_ebookdevhelpfile="${_src}"
-
-if [ "${EBOOKEXT}" = "" ]; then
- ext="tar.gz"
-else
- ext="${EBOOKEXT}"
-fi
-
-if [ "${SRC}" = "" ]; then
- SRC="${_src}"
-fi
-if [ "${SRC_URI}" = "" ]; then
- SRC_URI="http://lidn.sourceforge.net/books_download/${SRC}.${ext}"
-fi
-
-# Default directory to install de ebook devhelped book
-if [ "${DEVHELPROOT}" = "" ]; then
- DEVHELPROOT="usr/share/devhelp"
-fi
-if [ "${RDEPEND}" = "" ]; then
- RDEPEND="kde? ( dev-util/kdevelop )
- !kde? ( >=dev-util/devhelp-0.6 )"
-fi
-if [ "${DESCRIPTION}" = "" ]; then
- DESCRIPTION="${P} ebook based on $ECLASS eclass"
-fi
-if [ "${EBOOKDESTDIR}" = "" ]; then
- EBOOKDESTDIR=${_ebookdestdir}
-fi
-if [ "${EBOOKSRCDIR}" = "" ]; then
- EBOOKSRCDIR=${_ebooksrcdir}
-fi
-if [ "${EBOOKDEVHELPFILE}" = "" ]; then
- EBOOKDEVHELPFILE=${_ebookdevhelpfile}".devhelp"
-fi
-
-S=${WORKDIR}
-ebook_src_unpack() {
- debug-print-function $FUNCNAME $*
- unpack ${SRC}.${ext}
-}
-
-ebook_src_install() {
- debug-print-function $FUNCNAME $*
-
- dodir ${DEVHELPROOT}/books
- dodir ${DEVHELPROOT}/books/${EBOOKDESTDIR}
- echo EBOOKSRCDIR= ${EBOOKSRCDIR}
-
- if [ "${EBOOKFROMDIR}" ]; then
- cp ${S}/${EBOOKFROMDIR}/book.devhelp ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}/${EBOOKDEVHELPFILE}
- cp -R ${S}/${EBOOKFROMDIR}/book/* ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}
- else
- cp ${S}/book.devhelp ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}/${EBOOKDEVHELPFILE}
- cp -R ${S}/book/* ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}
-fi
-}
-
-EXPORT_FUNCTIONS src_unpack src_install
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/embassy-2.10.eclass b/eclass/embassy-2.10.eclass
index 996e0486438f..db05f4232948 100644
--- a/eclass/embassy-2.10.eclass
+++ b/eclass/embassy-2.10.eclass
@@ -1,80 +1,7 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/embassy-2.10.eclass,v 1.7 2007/03/26 20:04:34 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/embassy-2.10.eclass,v 1.8 2009/11/30 04:19:36 abcd Exp $
-# Author Olivier Fisette <ribosome@gentoo.org>
-
-# This eclass is used to install EMBASSY programs (EMBOSS add-ons).
-
-# The inheriting ebuild should provide a "DESCRIPTION", "KEYWORDS" and, if
-# necessary, add "(R|P)DEPEND"encies. Additionnaly, the inheriting ebuild's
-# name must begin by "embassy-".
-
-inherit eutils multilib
-
-
-# EMBOSS version needed for the EMBASSY packages
-EBOV="2.10.0"
-# The EMBASSY package name, retrieved from the inheriting ebuild's name
-EN=${PN:8}
-# The full name and version of the EMBASSY package (excluding the Gentoo
-# revision number)
-EF="$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV}"
-
-DESCRIPTION="Based on the $ECLASS eclass"
-HOMEPAGE="http://emboss.sourceforge.net/"
-LICENSE="GPL-2"
-SRC_URI="ftp://ftp.uk.embnet.org/pub/EMBOSS/EMBOSS-${EBOV}.tar.gz
- ftp://ftp.uk.embnet.org/pub/EMBOSS/${EF}.tar.gz"
-
-SLOT="0"
-IUSE="X png"
-
-DEPEND=">=sci-biology/emboss-${EBOV}
- X? ( x11-libs/libX11 )
- png? ( sys-libs/zlib
- media-libs/libpng
- >=media-libs/gd-1.8
- )"
-
-S=${WORKDIR}/EMBOSS-${EBOV}/embassy/${EF}
-
-embassy-2.10_src_unpack() {
- unpack ${A}
- mkdir EMBOSS-${EBOV}/embassy
- mv ${EF} EMBOSS-${EBOV}/embassy/
- cp /usr/$(get_libdir)/libplplot.la EMBOSS-${EBOV}/plplot/
- cp /usr/$(get_libdir)/libajax.la EMBOSS-${EBOV}/ajax/
- cp /usr/$(get_libdir)/libajaxg.la EMBOSS-${EBOV}/ajax/
- cp /usr/$(get_libdir)/libnucleus.la EMBOSS-${EBOV}/nucleus/
- if [ -e ${FILESDIR}/${PF}.patch ]; then
- cd ${S}
- epatch ${FILESDIR}/${PF}.patch
- fi
-}
-
-embassy-2.10_src_compile() {
- local EXTRA_CONF
- ! use X && EXTRA_CONF="${EXTRA_CONF} --without-x"
- ! use png && EXTRA_CONF="${EXTRA_CONF} --without-pngdriver"
- ./configure --host=${CHOST} \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --datadir=/usr/share \
- --sysconfdir=/etc \
- --localstatedir=/var/lib \
- ${EXTRA_CONF} || die
- emake || die "Before reporting this error as a bug, please make sure you compiled
- EMBOSS and the EMBASSY packages with the same \"USE\" flags. Failure to
- do so may prevent the compilation of some EMBASSY packages, or cause
- runtime problems with some EMBASSY programs. For example, if you
- compile EMBOSS with \"png\" support and then try to build DOMAINATRIX
- without \"png\" support, compilation will fail when linking the binaries."
-}
-
-embassy-2.10_src_install() {
- einstall || die
- dodoc AUTHORS ChangeLog NEWS README
-}
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/embassy-2.9.eclass b/eclass/embassy-2.9.eclass
index 5c68084a82b8..9ebc79bfb6e2 100644
--- a/eclass/embassy-2.9.eclass
+++ b/eclass/embassy-2.9.eclass
@@ -1,76 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/embassy-2.9.eclass,v 1.9 2007/03/26 20:04:34 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/embassy-2.9.eclass,v 1.10 2009/11/30 04:19:36 abcd Exp $
-# Author Olivier Fisette <ribosome@gentoo.org>
-
-# This eclass is used to install EMBASSY programs (EMBOSS add-ons).
-
-# The inheriting ebuild should provide a "DESCRIPTION", "KEYWORDS" and, if
-# necessary, add "(R|P)DEPEND"encies. Additionnaly, the inheriting ebuild's
-# name must begin by "embassy-".
-
-inherit eutils multilib
-
-# EMBOSS version needed for the EMBASSY packages
-EBOV="2.9.0"
-# The EMBASSY package name, retrieved from the inheriting ebuild's name
-EN=${PN:8}
-# The full name and version of the EMBASSY package (excluding the Gentoo
-# revision number)
-EF="$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV}"
-
-DESCRIPTION="Based on the $ECLASS eclass"
-HOMEPAGE="http://emboss.sourceforge.net/"
-LICENSE="GPL-2"
-SRC_URI="ftp://ftp.uk.embnet.org/pub/EMBOSS/EMBOSS-${EBOV}.tar.gz
- ftp://ftp.uk.embnet.org/pub/EMBOSS/${EF}.tar.gz"
-
-SLOT="0"
-IUSE="X png"
-
-DEPEND="=sci-biology/emboss-${EBOV}
- !=sci-biology/emboss-2.10*
- X? ( x11-libs/libX11 )
- png? ( sys-libs/zlib
- media-libs/libpng
- >=media-libs/gd-1.8
- )"
-
-S=${WORKDIR}/EMBOSS-${EBOV}/embassy/${EF}
-
-embassy-2.9_src_unpack() {
- unpack ${A}
- mkdir EMBOSS-${EBOV}/embassy
- mv ${EF} EMBOSS-${EBOV}/embassy/
- cp /usr/$(get_libdir)/libplplot.la EMBOSS-${EBOV}/plplot/
- cp /usr/$(get_libdir)/libajax.la EMBOSS-${EBOV}/ajax/
- cp /usr/$(get_libdir)/libajaxg.la EMBOSS-${EBOV}/ajax/
- cp /usr/$(get_libdir)/libnucleus.la EMBOSS-${EBOV}/nucleus/
-}
-
-embassy-2.9_src_compile() {
- local EXTRA_CONF
- ! use X && EXTRA_CONF="${EXTRA_CONF} --without-x"
- ! use png && EXTRA_CONF="${EXTRA_CONF} --without-pngdriver"
- ./configure --host=${CHOST} \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --datadir=/usr/share \
- --sysconfdir=/etc \
- --localstatedir=/var/lib \
- ${EXTRA_CONF} || die
- emake || die "Before reporting this error as a bug, please make sure you compiled
- EMBOSS and the EMBASSY packages with the same \"USE\" flags. Failure to
- do so may prevent the compilation of some EMBASSY packages, or cause
- runtime problems with some EMBASSY programs. For example, if you
- compile EMBOSS with \"png\" support and then try to build DOMAINATRIX
- without \"png\" support, compilation will fail when linking the binaries."
-}
-
-embassy-2.9_src_install() {
- einstall || die
- dodoc AUTHORS ChangeLog NEWS README
-}
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/games-etmod.eclass b/eclass/games-etmod.eclass
index cd0f015a439c..389b382d80a0 100644
--- a/eclass/games-etmod.eclass
+++ b/eclass/games-etmod.eclass
@@ -1,152 +1,7 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-etmod.eclass,v 1.14 2007/07/02 14:24:27 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-etmod.eclass,v 1.15 2009/11/30 04:19:36 abcd Exp $
-inherit games
-
-EXPORT_FUNCTIONS src_install pkg_postinst
-
-DESCRIPTION="Enemy Territory - ${MOD_DESC}"
-
-SLOT="0"
-KEYWORDS="-* amd64 x86"
-RESTRICT="strip"
-IUSE="opengl dedicated"
-
-DEPEND="app-arch/unzip"
-RDEPEND="sys-libs/glibc
- games-fps/enemy-territory
- amd64? ( app-emulation/emul-linux-x86-baselibs
- opengl? ( app-emulation/emul-linux-x86-xlibs ) )
- dedicated? ( app-misc/screen )
- opengl? ( virtual/opengl )"
-
-S=${WORKDIR}
-
-games-etmod_src_install() {
- [[ -z "${MOD_NAME}" ]] && die "what is the name of this etmod ?"
-
- local bdir=${GAMES_PREFIX_OPT}/enemy-territory
- local mdir=${bdir}/${MOD_NAME}
- MOD_BINS=${MOD_BINS:-${MOD_NAME}}
-
- if [[ -d ${MOD_NAME} ]] ; then
- dodir "${bdir}"
- cp -PR ${MOD_NAME} "${D}/${bdir}/"
- fi
- if [[ -d etmain ]] ; then
- dodir "${bdir}"
- cp -PR etmain "${D}/${bdir}/"
- fi
- if [[ ! -z "`ls "${S}"/* 2> /dev/null`" ]] ; then
- dodir "${mdir}"
- cp -PR "${S}"/* "${D}/${mdir}/"
- fi
-
- if use dedicated; then
- games-etmod_make_etded_exec
- newgamesbin "${T}"/et-${MOD_NAME}-ded.bin et-${MOD_BINS}-ded
- fi
- if use opengl; then
- games-etmod_make_enemy-territory_exec
- newgamesbin "${T}"/et-${MOD_NAME}.bin et-${MOD_BINS}
- fi
-
- if use dedicated; then
- games-etmod_make_init.d
- newinitd "${T}"/et-${MOD_NAME}-ded.init.d et-${MOD_BINS}-ded
- games-etmod_make_conf.d
- newconfd "${T}"/et-${MOD_NAME}-ded.conf.d et-${MOD_BINS}-ded
-
- dodir "${GAMES_SYSCONFDIR}"/enemy-territory
-
- dodir "${bdir}"/etwolf-homedir
- dosym "${bdir}"/etwolf-homedir "${GAMES_PREFIX}"/.wolfet
- keepdir ${bdir}/etwolf-homedir
- chmod g+rw "${D}/${mdir}" "${D}/${bdir}"/etwolf-homedir
- chmod -R g+rw "${D}/${GAMES_SYSCONFDIR}"/enemy-territory
- fi
- prepgamesdirs
-}
-
-games-etmod_pkg_postinst() {
- local samplecfg=${FILESDIR}/server.cfg
- local realcfg=${GAMES_PREFIX_OPT}/enemy-territory/${MOD_NAME}/server.cfg
-
- if [[ -e "${samplecfg}" ]] && [[ ! -e "${realcfg}" ]] ; then
- cp "${samplecfg}" "${realcfg}"
- fi
-
- use opengl && einfo "To play this mod: et-${MOD_BINS}"
- if use dedicated; then
- einfo "To launch a dedicated server: et-${MOD_BINS}-ded"
- einfo "To launch server at startup: /etc/init.d/et-${MOD_NAME}-ded"
- fi
-
- games_pkg_postinst
-}
-
-games-etmod_make_etded_exec() {
-cat << EOF > "${T}"/et-${MOD_NAME}-ded.bin
-#!/bin/sh
-exec ${GAMES_BINDIR}/et-ded +set fs_game ${MOD_NAME} +set dedicated 1 +exec server.cfg \${@}
-EOF
-}
-
-games-etmod_make_enemy-territory_exec() {
-cat << EOF > "${T}"/et-${MOD_NAME}.bin
-#!/bin/sh
-exec "${GAMES_BINDIR}"/et +set fs_game ${MOD_NAME} \${@}
-EOF
-}
-
-games-etmod_make_init.d() {
-cat << EOF > "${T}"/et-${MOD_NAME}-ded.init.d
-#!/sbin/runscript
-$(<${PORTDIR}/header.txt)
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting ${MOD_NAME} dedicated"
- screen -A -m -d -S et-${MOD_BINS}-ded su - ${GAMES_USER_DED} -c "${GAMES_BINDIR}/et-${MOD_BINS}-ded \${${MOD_NAME}_OPTS}"
- eend \$?
-}
-
-stop() {
- ebegin "Stopping ${MOD_NAME} dedicated"
- local pid=\`screen -list | grep et-${MOD_BINS}-ded | awk -F . '{print \$1}' | sed -e s/.//\`
- if [[ -z "\${pid}" ]] ; then
- eend 1 "Lost screen session"
- else
- pid=\`pstree -p \${pid} | sed -e 's:^.*etded\.x86::'\`
- pid=\${pid:1:\${#pid}-2}
- if [[ -z "\${pid}" ]] ; then
- eend 1 "Lost etded session"
- else
- kill \${pid}
- eend \$? "Could not kill etded"
- fi
- fi
-}
-
-status() {
- screen -list | grep et-${MOD_BINS}-ded
-}
-EOF
-}
-
-games-etmod_make_conf.d() {
- if [[ -e "${FILESDIR}"/${MOD_NAME}.conf.d ]] ; then
- cp "${FILESDIR}"/${MOD_NAME}.conf.d "${T}"/et-${MOD_NAME}-ded.conf.d
- return 0
- fi
-cat << EOF > "${T}"/et-${MOD_NAME}-ded.conf.d
-$(<${PORTDIR}/header.txt)
-
-# Any extra options you want to pass to the dedicated server
-${MOD_NAME}_OPTS="+set com_hunkmegs 64 +set com_zonemegs 32"
-EOF
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/games-ut2k4mod.eclass b/eclass/games-ut2k4mod.eclass
index 71e7bdca5154..d4fd8b145753 100644
--- a/eclass/games-ut2k4mod.eclass
+++ b/eclass/games-ut2k4mod.eclass
@@ -1,127 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-ut2k4mod.eclass,v 1.11 2007/07/12 23:57:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-ut2k4mod.eclass,v 1.12 2009/11/30 04:19:36 abcd Exp $
-inherit games
-
-EXPORT_FUNCTIONS pkg_nofetch src_unpack src_install pkg_postinst
-
-DESCRIPTION="UT2004 - ${MOD_DESC}"
-
-SLOT="0"
-KEYWORDS="-* x86 amd64"
-IUSE=""
-
-DEPEND="app-arch/tar
- app-arch/bzip2"
-RDEPEND="sys-libs/glibc"
-PDEPEND=">=games-fps/ut2004-3339"
-
-S=${WORKDIR}
-dir=${GAMES_PREFIX_OPT}/ut2004
-Ddir=${D}/${dir}
-
-check_dvd() {
- # The following is a nasty mess to determine if we are installing from
- # a DVD or from multiple CDs. Anyone feel free to submit patches to this
- # to bugs.gentoo.org as I know it is a very ugly hack.
-
- USE_DVD=
- USE_ECE_DVD=
- USE_MIDWAY_DVD=
- USE_GERMAN_MIDWAY_DVD=
-
- local r
- for r in "${CD_ROOT}" "${CD_ROOT_1}" \
- `mount | egrep -e '(iso|cdrom)' | awk '{print $3}'` ; do
- if [[ -n "${r}" ]] ; then
- einfo "Searching ${r}"
- if [[ -e "${r}/AutoRunData/Unreal.ico" ]] \
- && [[ -e "${r}/Disk5/data6.cab" ]] ; then
- USE_MIDWAY_DVD=1
- USE_DVD=1
- elif [[ -e "${r}/autorund/unreal.ico" ]] \
- && [[ -e "${r}/disk7/data8.cab" ]] ; then
- USE_MIDWAY_DVD=1
- USE_GERMAN_MIDWAY_DVD=1
- USE_DVD=1
- else
- [[ -d "${r}/CD1" ]] && USE_DVD=1
- [[ -d "${r}/CD7" ]] && USE_ECE_DVD=1
- fi
- fi
- done
-}
-
-games-ut2k4mod_pkg_nofetch() {
- einfo "Please download ${SRC_URI} and put it into ${DISTDIR}"
- einfo "http://liflg.org/?catid=6&gameid=17"
-}
-
-games-ut2k4mod_src_unpack() {
- [[ -z "${MOD_TBZ2}" ]] && die "What are we supposed to unpack?"
- [[ -z "${MOD_NAME}" ]] && die "What is the name of this ut2k4mod?"
-
- local src_uri uri_suffix
- for src_uri in ${A} ; do
- uri_suffix="${src_uri##*.}"
- case ${uri_suffix##*.} in
- run|bin)
- # We have a Makeself archive, use unpack_makeself
- unpack_makeself "${src_uri}"
- # Since this is a Makeself archive, it has a lot of useless
- # files (for us), so we delete them.
- rm -rf setup.data setup.sh uninstall
- ;;
- bz2|gz|Z|z|ZIP|zip)
- # We have a normal tarball/zip file, use unpack
- unpack "${src_uri}"
- ;;
- esac
- done
-
- mkdir "${S}"/unpack
- local tarball
- for tarball in ${MOD_TBZ2} ; do
- if [[ -e "${tarball}_${PV}-english.tar.bz2" ]] ; then
- tar xjf "${tarball}_${PV}-english.tar.bz2" -C "${S}"/unpack \
- || die "uncompressing tarball"
- elif [[ -e "${tarball}_${PV}.tar.bz2" ]] ; then
- tar xjf "${tarball}_${PV}.tar.bz2" -C "${S}"/unpack \
- || die "uncompressing tarball"
- else
- tar xjf "${tarball}.tar.bz2" -C "${S}"/unpack \
- || die "uncompressing tarball"
- fi
- done
-}
-
-games-ut2k4mod_src_install() {
- insinto "${dir}"
- doins -r "${S}"/unpack/* || die "doins -r unpack failed"
-
- for readme in README* ; do
- dodoc "${readme}" || die "dodoc failed"
- done
- if [[ -n "${MOD_BINS}" ]] ; then
- exeinto "${dir}"
- doexe bin/"${MOD_BINS}" || die "doexe ${MOD_BINS} failed"
- games_make_wrapper "${MOD_BINS}" ./"${MOD_BINS}" "${dir}"
- make_desktop_entry "${MOD_BINS}" "UT2004 - ${MOD_NAME}" "${MOD_ICON}"
- fi
-
- if [[ -n "${MOD_ICON}" ]] && [[ -e "${MOD_ICON}" ]] ; then
- doicon "${MOD_ICON}" || die "doicon ${MOD_ICON} failed"
- fi
-
- prepgamesdirs
-}
-
-games-ut2k4mod_pkg_postinst() {
- if [[ -n "${MOD_BINS}" ]] ; then
- elog "To play this mod, run:"
- elog " ${MOD_BINS}"
- fi
-
- games_pkg_postinst
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/gcc.eclass b/eclass/gcc.eclass
deleted file mode 100644
index e8a24f7bd28a..000000000000
--- a/eclass/gcc.eclass
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gcc.eclass,v 1.24 2008/02/19 05:20:45 vapier Exp $
-
-# @DEAD
-
-# STOP USING THIS ECLASS
-# PLEASE TRANSITION TO TOOLCHAIN-FUNCS.ECLASS
-ewarn "Please upgrade your package (${PF}) to use toolchain-funcs.eclass"
diff --git a/eclass/gnustep-funcs.eclass b/eclass/gnustep-funcs.eclass
index a03b4ea3860e..e6a787b7320d 100644
--- a/eclass/gnustep-funcs.eclass
+++ b/eclass/gnustep-funcs.eclass
@@ -1,324 +1,7 @@
-# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-funcs.eclass,v 1.14 2009/06/01 08:42:01 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-funcs.eclass,v 1.15 2009/11/30 04:19:36 abcd Exp $
-# THIS ECLASS IS DEPRECATED. PLEASE DO NOT USE IT.
-
-inherit toolchain-funcs eutils
-
-###########################################################################
-# IUSE="debug profile"
-# - These USE variables are utilized here, but set in gnustep.eclass IUSE.
-# - Packages that inherit this gnustep-funcs.eclass file to gain information
-# and access as to how GNUstep is deployed on the system can safely do so.
-# - Packages built on the GNUstep libraries should inherit gnustep.eclass
-# directly (it inherits from this eclass as well)
-###########################################################################
-
-DESCRIPTION="EClass that centralizes access to GNUstep environment information."
-
-###########################################################################
-# Functions
-# ---------
-
-# Prints out the dirname of GNUSTEP_SYSTEM_ROOT, i.e., "System" is installed
-# in egnustep_prefix
-egnustep_prefix() {
- # Generally, only gnustep-make should be the one setting this value
- #if [ "$1" ] && [ ! -f /etc/conf.d/net ]; then
- if [ "$1" ]; then
- __GS_PREFIX="$(dirname $1/prune)"
- return 0
- fi
-
- if [ -f /etc/conf.d/gnustep.env ]; then
- . /etc/conf.d/gnustep.env
- if [ -z "${GNUSTEP_SYSTEM_ROOT}" ] || [ "/" != "${GNUSTEP_SYSTEM_ROOT:0:1}" ]; then
- die "Please check /etc/conf.d/gnustep.env for consistency or remove it."
- fi
- __GS_PREFIX=$(dirname ${GNUSTEP_SYSTEM_ROOT})
- elif [ -z "${__GS_PREFIX}" ]; then
- __GS_PREFIX="/usr/GNUstep"
- __GS_SYSTEM_ROOT="/usr/GNUstep/System"
- fi
-
- echo "${__GS_PREFIX}"
-}
-
-# Prints/sets the GNUstep install domain; Generally, this will only be
-# "System" or "Local"
-egnustep_install_domain() {
- if [ -z "$1" ]; then
- if [ -z "$__GS_INSTALL_DOMAIN" ]; then
- # backwards comapatbility for older ebuilds
- __GS_INSTALL_DOMAIN="GNUSTEP_SYSTEM_ROOT"
- fi
- echo ${!__GS_INSTALL_DOMAIN}
- return 0
- else
- if [ "$1" == "System" ]; then
- __GS_INSTALL_DOMAIN="GNUSTEP_SYSTEM_ROOT"
- elif [ "$1" == "Local" ]; then
- __GS_INSTALL_DOMAIN="GNUSTEP_LOCAL_ROOT"
-# elif [ "$1" == "Network" ]; then
-# __GS_INSTALL_DOMAIN="GNUSTEP_NETWORK_ROOT"
- else
- die "An invalid parameter has been passed to ${FUNCNAME}"
- fi
- fi
-}
-
-# Clean/reset an ebuild to the installed GNUstep evironment; generally,
-# this is called once an ebuild (at least), and packages that will
-# inherit from gnustep.eclass already do this
-egnustep_env() {
- GNUSTEP_SYSTEM_ROOT="$(egnustep_prefix)/System"
- if [ -f ${GNUSTEP_SYSTEM_ROOT}/Library/Makefiles/GNUstep.sh ] ; then
- . ${GNUSTEP_SYSTEM_ROOT}/Library/Makefiles/GNUstep-reset.sh
- if [ -f /etc/conf.d/gnustep.env ]; then
- . /etc/conf.d/gnustep.env
- else
- GNUSTEP_SYSTEM_ROOT="/usr/GNUstep/System"
- fi
- . ${GNUSTEP_SYSTEM_ROOT}/Library/Makefiles/GNUstep.sh
-
- __GS_SYSTEM_ROOT=${GNUSTEP_SYSTEM_ROOT}
- __GS_LOCAL_ROOT=${GNUSTEP_LOCAL_ROOT}
- __GS_NETWORK_ROOT=${GNUSTEP_NETWORK_ROOT}
- __GS_USER_ROOT=${GNUSTEP_USER_ROOT}
- __GS_USER_ROOT_SUFFIX=$(dirname ${GNUSTEP_USER_ROOT#*$USER}/prune)/
-
- # "gs_prefix" is the prefix that GNUstep is installed into, e.g.
- # gs_prefix=/usr/GNUstep => GNUSTEP_SYSTEM_ROOT=${gs_prefix}/System
- local gs_prefix=`egnustep_prefix`
- echo ${gs_prefix//\//XXX_SED_FSLASH} > ${TMP}/sed.gs_prefix
-
- # "gs_user_root_suffix" what is left over from the difference of
- # GNUSTEP_USER_ROOT and HOME, e.g.:
- # "/home/something/whatever/.config/GNUstep" => ".config/GNUstep"
- echo ${__GS_USER_ROOT_SUFFIX//\//XXX_SED_FSLASH} > ${TMP}/sed.gs_user_root_suffix
-
- # Set up common env vars for make operations
- __GS_MAKE_EVAL=" \
- HOME=\"\${T}\" \
- GNUSTEP_USER_ROOT=\"\${T}\" \
- GNUSTEP_DEFAULTS_ROOT=\"\${T}/\${__GS_USER_ROOT_SUFFIX}\" \
- INSTALL_ROOT_DIR=\"\${D}\" \
- GNUSTEP_INSTALLATION_DIR=\"\${D}/\$(egnustep_install_domain)\" \
- GNUSTEP_MAKEFILES=\"\${GNUSTEP_SYSTEM_ROOT}\"/Library/Makefiles \
- GNUSTEP_NETWORK_ROOT=\"\${GNUSTEP_NETWORK_ROOT}\" \
- GNUSTEP_LOCAL_ROOT=\"\${GNUSTEP_LOCAL_ROOT}\" \
- GNUSTEP_SYSTEM_ROOT=\"\${GNUSTEP_SYSTEM_ROOT}\" \
- TAR_OPTIONS=\"\${TAR_OPTIONS} --no-same-owner\" \
- -j1" # this is dirty!
- else
- die "gnustep-make not installed!"
- fi
-}
-
-# Get/Set the GNUstep system root
-egnustep_system_root() {
- if [ "$1" ]; then
- __GS_SYSTEM_ROOT="$(dirname $1/prune)"
- else
- echo ${__GS_SYSTEM_ROOT}
- fi
-}
-
-# Get/Set the GNUstep local root
-egnustep_local_root() {
- if [ "$1" ]; then
- __GS_LOCAL_ROOT="$(dirname $1/prune)"
- else
- echo ${__GS_LOCAL_ROOT}
- fi
-}
-
-# Get/Set the GNUstep network root
-egnustep_network_root() {
- if [ "$1" ]; then
- __GS_NETWORK_ROOT="$(dirname $1/prune)"
- else
- echo ${__GS_NETWORK_ROOT}
- fi
-}
-
-# Get/Set the GNUstep user root
-# Note: watch out for this one -- ~ and such must be enclosed in single-quotes when passed in
-egnustep_user_root() {
- if [ "$1" ]; then
- __GS_USER_ROOT="$(dirname $1/prune)"
- else
- echo ${__GS_USER_ROOT}
- fi
-}
-
-# Print the "suffix" of the user_root, or simply
-# e.g ~/GNUstep => GNUstep
-egnustep_user_root_suffix() {
- echo ${!__GS_USER_ROOT_SUFFIX}
-}
-
-# Make utilizing GNUstep Makefiles
-egnustep_make() {
- if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then
- local gs_make_opts="${1} messages=yes"
- if use debug ; then
- gs_make_opts="${gs_make_opts} debug=yes"
- fi
- if use profile; then
- gs_make_opts="${gs_make_opts} profile=yes"
- fi
- eval emake ${__GS_MAKE_EVAL} ${gs_make_opts} all || die "package make failed"
- else
- die "no Makefile found"
- fi
- return 0
-}
-
-# Copies "convenience scripts"
-egnustep_package_config() {
- if [ -f ${FILESDIR}/config-${PN}.sh ]; then
- dodir `egnustep_install_domain`/Tools/Gentoo
- exeinto `egnustep_install_domain`/Tools/Gentoo
- doexe ${FILESDIR}/config-${PN}.sh
- fi
-}
-
-# Informs user about existence of "convenience script"
-egnustep_package_config_info() {
- if [ -f ${FILESDIR}/config-${PN}.sh ]; then
- einfo "Make sure to set happy defaults for this package by executing:"
- einfo " `egnustep_install_domain`/Tools/Gentoo/config-${PN}.sh"
- einfo "as the user you will run the package as."
- fi
-}
-
-# Make-install utilizing GNUstep Makefiles
-egnustep_install() {
- if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then
- local gs_make_opts="${1} messages=yes"
- if use debug ; then
- gs_make_opts="${gs_make_opts} debug=yes"
- fi
- if use profile; then
- gs_make_opts="${gs_make_opts} profile=yes"
- fi
- eval emake ${__GS_MAKE_EVAL} ${gs_make_opts} install || die "package install failed"
- else
- die "no Makefile found"
- fi
- return 0
-}
-
-# Make and install docs utilzing GNUstep Makefiles
-# Note: docs installed with this from a GNUMakefile,
-# not just some files in a Documentation directory
-egnustep_doc() {
- cd ${S}/Documentation
- if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then
- local gs_make_opts="${1} messages=yes"
- if use debug ; then
- gs_make_opts="${gs_make_opts} debug=yes"
- fi
- if use profile; then
- gs_make_opts="${gs_make_opts} profile=yes"
- fi
- eval emake ${__GS_MAKE_EVAL} ${gs_make_opts} all || die "doc make failed"
- eval emake ${__GS_MAKE_EVAL} ${gs_make_opts} install || die "doc install failed"
-#XXX: I have no idea why this is called by ebuilds that don't have 'doc' in the
-# USE flags, but user has 'doc' in global USE in make.conf
-# else
-# die "no Makefile found"
- fi
- cd ..
- return 0
-}
-
-###########################################################################
-# Tests
-# -----
-
-objc_available() {
- export OBJC_TEST="${TMP}/objc_test.m"
- cat > "${OBJC_TEST}" << EOF
-/**
- * This example taken from the tutorial at:
- * http://gnustep.made-it.com/GSPT/xml/Tutorial_en.html
- <quote>
- A GNUstep Programming Tutorial
- Time is on our side...
- Yen-Ju Chen
- Dennis Leeuw
-
- Copyright © 2003 Yen-Ju Chen, Dennis Leeuw
-
- Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
- </quote>
- */
-#include <objc/Object.h>
-@interface Greeter:Object
-{
- /* This is left empty on purpose:
- * Normally instance variables would be declared here,
- * but these are not used in our example.
- */
-}
-- (void)greet;
-@end
-
-#include <stdio.h>
-@implementation Greeter
-- (void)greet
-{
- printf("Hello, World!\n");
-}
-@end
-
-#include <stdlib.h>
-int main(void)
-{
- id myGreeter;
- myGreeter=[Greeter new];
- [myGreeter greet];
- [myGreeter free];
- return EXIT_SUCCESS;
-}
-EOF
-
- local available
- available="yes"
- eval $(tc-getCC) ${OBJC_TEST} -o ${OBJC_TEST}-out -lobjc || available="no"
-
- echo ${available}
-}
-
-objc_not_available_info() {
- einfo "gcc must be compiled with Objective-C support, see the objc USE flag"
-}
-
-ffi_available() {
- export FFI_TEST="${TMP}/ffi_test.m"
- cat > "${FFI_TEST}" << EOF
-#include <ffi.h>
-
-int main(int argc, char *argv[])
-{
- int n = argc;
-
- return 0;
-}
-EOF
-
- local available
- available="yes"
- eval $(tc-getCC) ${FFI_TEST} -o ${FFI_TEST}-out -lffi || available="no"
-
- echo ${available}
-}
-
-ffi_not_available_info() {
- einfo "please install virtual/libffi"
-}
-
-###########################################################################
+# @DEAD
+# To be removed 2009/12/08.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/gnustep-old.eclass b/eclass/gnustep-old.eclass
index 22cdf7482b73..aa3d3dd1a9c6 100644
--- a/eclass/gnustep-old.eclass
+++ b/eclass/gnustep-old.eclass
@@ -1,144 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-old.eclass,v 1.12 2009/09/23 21:23:56 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-old.eclass,v 1.13 2009/11/30 04:19:36 abcd Exp $
-# THIS ECLASS IS DEPRECATED. PLEASE DO NOT USE IT.
-
-DESCRIPTION="Based on the gnustep eclass."
-
-DEPEND="gnustep-base/gnustep-make
- gnustep-base/gnustep-base
- sys-devel/gcc"
-RDEPEND=""
-
-getsourcedir() {
- if [ ! -d "${S}" ] ; then
- if [ -d "${WORKDIR}/${PN}" ] ; then
- S="${WORKDIR}/${PN}"
- elif [ -d "${WORKDIR}/${P}" ] ; then
- S="${WORKDIR}/${P}"
- else
- die "Cannot find source directory!"
- fi
- fi
-}
-
-need-gnustep-gui() {
- if [ "$1" ] ; then
- DEPEND="${DEPEND} >=gnustep-base/gnustep-gui-$1"
- RDEPEND="${RDEPEND} >=gnustep-base/gnustep-back-$1"
- else
- DEPEND="${DEPEND} gnustep-base/gnustep-gui"
- RDEPEND="${RDEPEND} gnustep-base/gnustep-back"
- fi
-}
-
-egnustepmake() {
- getsourcedir
-
- addwrite /root/GNUstep/Defaults/.GNUstepDefaults.lck
- addpredict /root/GNUstep
-
- cd ${S}
-
- if [ -f /usr/GNUstep/System/Makefiles/GNUstep.sh ] ; then
- . /usr/GNUstep/System/Makefiles/GNUstep.sh
- else
- die "gnustep-make not installed!"
- fi
-
- mkdir -p $TMP/fakehome/GNUstep
-
- if [ -x configure ] ; then
- if [ -z "$*" ] ; then
- ./configure \
- HOME=$TMP/fakehome \
- GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \
- || die "configure failed"
- else
- ./configure \
- HOME=$TMP/fakehome \
- GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \
- $* || die "configure failed (options: $*)"
- fi
- fi
-
- if [ "${GNUSTEPBACK_XFT}" != "2" ] ; then
- if [ "${PN}" = "gnustep-back" ] ; then
- if [ ! -f "/usr/X11R6/include/X11/Xft1/Xft.h" ]; then
- sed "s,^#define HAVE_XFT.*,#undef HAVE_XFT,g" config.h > config.h.new
- sed "s,^#define HAVE_UTF8.*,#undef HAVE_UTF8,g" config.h.new > config.h
- sed "s,^WITH_XFT=.*,WITH_XFT=no," config.make > config.make.new
- sed "s,-lXft,," config.make.new > config.make
- fi
- fi
- fi
-
- if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then
- make \
- HOME=$TMP/fakehome \
- GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \
- || die "emake failed"
- else
- die "no Makefile found"
- fi
- return 0
-}
-
-egnustepinstall() {
- getsourcedir
-
- addwrite /root/GNUstep/Defaults/.GNUstepDefaults.lck
- addpredict /root/GNUstep
-
- cd ${S}
-
- if [ -f /usr/GNUstep/System/Makefiles/GNUstep.sh ] ; then
- source /usr/GNUstep/System/Makefiles/GNUstep.sh
- else
- die "gnustep-make not installed!"
- fi
-
- mkdir -p $TMP/fakehome/GNUstep
-
- if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then
- # To be or not to be evil?
- # Should all the roots point at GNUSTEP_SYSTEM_ROOT to force
- # install?
- # GNUSTEP_USER_ROOT must be GNUSTEP_SYSTEM_ROOT, some malformed
- # Makefiles install there.
- if [ "${PN}" = "gnustep-base" ] || [ "${PN}" = "gnustep-gui" ] || [ "${PN}" = "gnustep-back" ] ; then
- # for some reason, they need less tending to...
- make \
- GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \
- HOME=$TMP/fakehome \
- GNUSTEP_INSTALLATION_DIR=${D}${GNUSTEP_SYSTEM_ROOT} \
- INSTALL_ROOT_DIR=${D} \
- install || die "einstall failed"
- else
- make \
- GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \
- HOME=$TMP/fakehome \
- GNUSTEP_INSTALLATION_DIR=${D}${GNUSTEP_SYSTEM_ROOT} \
- INSTALL_ROOT_DIR=${D} \
- GNUSTEP_LOCAL_ROOT=${D}${GNUSTEP_LOCAL_ROOT} \
- GNUSTEP_NETWORK_ROOT=${D}${GNUSTEP_NETWORK_ROOT} \
- GNUSTEP_SYSTEM_ROOT=${D}${GNUSTEP_SYSTEM_ROOT} \
- GNUSTEP_USER_ROOT=${D}${GNUSTEP_SYSTEM_ROOT} \
- install || die "einstall failed"
- fi
- else
- die "no Makefile found"
- fi
- return 0
-}
-
-gnustep-old_src_compile() {
- egnustepmake || die
-}
-
-gnustep-old_src_install() {
- egnustepinstall || die
-}
-
-EXPORT_FUNCTIONS src_compile src_install
+# @DEAD
+# To be removed 2009/12/08.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/gnustep.eclass b/eclass/gnustep.eclass
index 4979c94420a6..143ae88f1e5b 100644
--- a/eclass/gnustep.eclass
+++ b/eclass/gnustep.eclass
@@ -1,121 +1,7 @@
-# Copyright 1999-2006 Gentoo Technologies, Inc.
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep.eclass,v 1.39 2009/09/23 21:23:56 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep.eclass,v 1.40 2009/11/30 04:19:36 abcd Exp $
-# THIS ECLASS IS DEPRECATED. PLEASE DO NOT USE IT.
-
-inherit gnustep-funcs eutils flag-o-matic
-
-DESCRIPTION="EClass designed to facilitate building GNUstep Apps, Frameworks, and Bundles on Gentoo."
-
-###########################################################################
-# IUSE variables across all GNUstep packages
-# ##### All GNUstep applications / libs get these
-# "debug" - enable code for debugging;
-# "profile" - enable code for profiling;
-# "doc" - build and install documentation, if available
-IUSE="debug profile doc"
-###########################################################################
-
-###########################################################################
-# Internal variables
-#__GS_INSTALL_DOMAIN="GNUSTEP_SYSTEM_ROOT"
-#__GS_USER_ROOT_SUFFIX="/"
-#__GS_MAKE_EVAL=""
-#__GS_PREFIX="/usr/GNUstep"
-#__GS_SYSTEM_ROOT="/usr/GNUstep/System"
-#__GS_LOCAL_ROOT="/usr/GNUstep/Local"
-#__GS_NETWORK_ROOT="/usr/GNUstep/Network"
-#__GS_USER_ROOT="~/GNUstep"
-###########################################################################
-
-###########################################################################
-# Variables
-# ---------
-# ~ legend
-# (a) - append more data if needed
-# (n) - do not override without a good reason
-# (y) - override as appropriate per ebuild
-# Build general GNUstep ebuild depends here
-# - most .app should be set up this way:
-# + (a) DEPEND="${GS_DEPEND} other/depend ..."
-# + (a) RDEPEND="${GS_RDEPEND} other/rdepend ..."
-# - core libraries and other packages that need to
-# specialize more can use:
-# + (n) DOC_DEPEND - packages needed to build docs
-# + (n) GNUSTEP_CORE_DEPEND - packages needed to build any gnustep package
-# + (n) GNUSTEP_BASE_DEPEND - packages needed to build gnustep CLI only apps
-# + (n) GNUSTEP_GUI_DEPEND - packages needed to build gnustep GUI apps
-# + (n) DEBUG_DEPEND - packages needed to utilize .debug apps
-# + (n) DOC_RDEPEND - packages needed to view docs
-###########################################################################
-DOC_DEPEND="doc? ( virtual/tetex
- =dev-tex/latex2html-2002*
- >=app-text/texi2html-1.64 )"
-GNUSTEP_CORE_DEPEND=">=sys-devel/gcc-3.3.5
- ${DOC_DEPEND}"
-##########################################
-# Armando Di Cianno <fafhrd@gentoo.org>
-# 20050414 - Removing use of the next two entries from all dependent ebuilds;
-# they were doing bad things to dependencies
-GNUSTEP_BASE_DEPEND="${GNUSTEP_CORE_DEPEND}
- <gnustep-base/gnustep-make-2*
- <gnustep-base/gnustep-base-1.14*"
-GNUSTEP_GUI_DEPEND="${GNUSTEP_BASE_DEPEND}
- <gnustep-base/gnustep-gui-0.12*"
-##########################################
-GS_DEPEND="gnustep-base/gnustep-env"
-DEBUG_DEPEND="debug? ( >=sys-devel/gdb-6.0 )"
-DOC_RDEPEND="doc? ( virtual/man
- >=sys-apps/texinfo-4.6 )"
-GS_RDEPEND="${GS_DEPEND}
- ${DEBUG_DEPEND}
- ${DOC_RDEPEND}"
-###########################################################################
-
-###########################################################################
-# Ebuild function overrides
-# -------------------------
-gnustep_pkg_setup() {
- if test_version_info 3.3
- then
- #einfo "Using gcc 3.3*"
- # gcc 3.3 doesn't support certain 3.4.1 options,
- # as well as having less specific -march options
- replace-flags -march=pentium-m -march=pentium3
- filter-flags -march=k8
- filter-flags -march=athlon64
- filter-flags -march=opteron
-
- strip-unsupported-flags
- elif test_version_info 3.4
- then
- # strict-aliasing is known to break obj-c stuff in gcc-3.4*
- filter-flags -fstrict-aliasing
- fi
-
- # known to break ObjC (bug 86089)
- filter-flags -fomit-frame-pointer
-}
-
-gnustep_src_compile() {
- egnustep_env
- egnustep_make || die
-}
-
-gnustep_src_install() {
- egnustep_env
- egnustep_install || die
- if use doc ; then
- egnustep_env
- egnustep_doc || die
- fi
- egnustep_package_config
-}
-
-gnustep_pkg_postinst() {
- egnustep_package_config_info
-}
-###########################################################################
-
-EXPORT_FUNCTIONS pkg_setup src_compile src_install pkg_postinst
+# @DEAD
+# To be removed 2009/12/08.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/gst-plugins.eclass b/eclass/gst-plugins.eclass
index 985bb00f41fc..ff9285ad1cd1 100644
--- a/eclass/gst-plugins.eclass
+++ b/eclass/gst-plugins.eclass
@@ -1,204 +1,17 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins.eclass,v 1.34 2007/06/28 13:46:45 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins.eclass,v 1.35 2009/11/30 04:19:36 abcd Exp $
-# Author : foser <foser@gentoo.org>
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
-# gst-plugins eclass
-#
-# eclass to make external gst-plugins emergable on a per-plugin basis
-# to solve the problem with gst-plugins generating far too much unneeded deps
-#
-# 3rd party applications using gstreamer now should depend on a set of plugins as
-# defined in the source, in case of spider usage obtain recommended plugins to use from
-# Gentoo developers responsible for gstreamer <gnome@gentoo.org>, the application developer
-# or the gstreamer team.
-
-inherit eutils libtool autotools
-
-
-###
-# variable declarations
-###
-
-# Create a major/minor combo for our SLOT and executables suffix
PVP=(${PV//[-\._]/ })
PV_MAJ_MIN=${PVP[0]}.${PVP[1]}
-
-MY_P=gst-plugins-${PV}
-
-# All relevant configure options for gst-plugins
-# need a better way to extract these
-# gstreamer 0.6
-my_gst_plugins="dxr3 oss qcam v4l v4l2 vcd vga cdrom xvideo a52dec aalib aalibtest alsa arts artstest artsc audiofile avifile cdparanoia dvdread dvdnav esd esdtest flac ffmpeg gnome_vfs gsm hermes http jack jpeg ladspa lame lcs libdv libfame libfametest libpng mad mikmod libmikmodtest mjpegtools mpeg2dec openquicktime raw1394 rtp sdl sdltest shout shout2 shout2test sidplay smoothwave snapshot swfdec tarkin vorbis vorbistest xmms libmmx atomic tests examples"
-# gstreamer 0.8
-my_gst_plugins="${my_gst_plugins} divx faad gdk_pixbuf ogg sndfile x pango speex xvid mpeg2enc mplex musicbrainz nas librfb libcaca ivorbis faac theora kio osx_audio osx_video sunaudio artsc dts libvisual dirac libmng opengl gst_v4l gst_v4l2 libmms musepack directfb polyp cairo spc wavpack cdio amrnb x264 raw1394"
-
-# Extract the plugin to build from the ebuild name
-# May be set by an ebuild and contain more than one indentifier, space seperated
-# (only src_configure can handle mutiple plugins at this time)
-GST_PLUGINS_BUILD=${PN/gst-plugins-/}
-
-# Actual build dir, is the same as the configure switch name most of the time
-GST_PLUGINS_BUILD_DIR=${PN/gst-plugins-/}
-
-# general common gst-plugins ebuild entries
-DESCRIPTION="${BUILD_GST_PLUGINS} plugin for gstreamer"
-HOMEPAGE="http://gstreamer.freedesktop.org/modules/gst-plugins.html"
-LICENSE="GPL-2"
-
-SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
-if [ ${PV} == "0.8.11" ]; then
- SRC_URI="${SRC_URI}
- http://dev.gentooexperimental.org/~peper/distfiles/gst-plugins-0.8.11-conffix.patch.bz2"
-fi
-
SLOT=${PV_MAJ_MIN}
-S=${WORKDIR}/${MY_P}
-
-# added to remove circular deps
-# 6/2/2006 - zaheerm
-if [ "${P}" != "${MY_P}" ]; then
-RDEPEND="=media-libs/${MY_P}*"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- >=sys-apps/sed-4"
-fi
-
-###
-# internal functions
-###
-
-gst-plugins_find_plugin_dir() {
-
- if [ ! -d ${S}/ext/${GST_PLUGINS_BUILD_DIR} ]; then
- if [ ! -d ${S}/sys/${GST_PLUGINS_BUILD_DIR} ]; then
- ewarn "No such plugin directory"
- die
- fi
- einfo "Building system plugin ..."
- cd ${S}/sys/${GST_PLUGINS_BUILD_DIR}
- else
- einfo "Building external plugin ..."
- cd ${S}/ext/${GST_PLUGINS_BUILD_DIR}
- fi
-
-}
-
-###
-# public functions
-###
-
-gst-plugins_src_configure() {
-
- # disable any external plugin besides the plugin we want
- local plugin gst_conf
-
- einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
-
- for plugin in ${GST_PLUGINS_BUILD}; do
- my_gst_plugins=${my_gst_plugins/${plugin}/}
- done
- for plugin in ${my_gst_plugins}; do
- gst_conf="${gst_conf} --disable-${plugin} "
- done
- for plugin in ${GST_PLUGINS_BUILD}; do
- gst_conf="${gst_conf} --enable-${plugin} "
- done
-
- cd ${S}
- econf ${@} ${gst_conf} || die "./configure failure"
-
-}
-
-gst-plugins_update_registry() {
-
- einfo "Updating gstreamer plugins registry for gstreamer ${SLOT} ..."
- gst-register-${SLOT}
-
-}
-
-gst-plugins_remove_unversioned_binaries() {
-
- # remove the unversioned binaries gstreamer provide
- # this is to prevent these binaries to be owned by several SLOTs
-
- cd ${D}/usr/bin
- for gst_bins in `ls *-${PV_MAJ_MIN}`
- do
- rm ${gst_bins/-${PV_MAJ_MIN}/}
- einfo "Removed ${gst_bins/-${PV_MAJ_MIN}/}"
- done
-
-}
-
-###
-# public inheritable functions
-###
-
-gst-plugins_src_unpack() {
-
- local makefiles
-
- unpack ${A}
-
- # apply patch to fix broken configure in 0.8.11
- cd ${S}
- if [ ${PV} == "0.8.11" ]; then
- epatch "${WORKDIR}/gst-plugins-0.8.11-conffix.patch"
- AT_M4DIR="-I m4 -I common/m4"
- eautoreconf
- elibtoolize
- fi
-
- # Link with the syswide installed interfaces if needed
- gst-plugins_find_plugin_dir
- sed -e "s:\$(top_builddir)/gst-libs/gst/libgstinterfaces:/usr/$(get_libdir)/libgstinterfaces:" \
- -e "s:\${top_builddir}/gst-libs/gst/libgstinterfaces:/usr/$(get_libdir)/libgstinterfaces:" \
- -i Makefile.in
- cd ${S}
-
- # Remove generation of any other Makefiles except the plugin's Makefile
- if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
- makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
- elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
- makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
- fi
- sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
- -i ${S}/configure
-
-}
-
-gst-plugins_src_compile() {
-
- gst-plugins_src_configure ${@}
-
- gst-plugins_find_plugin_dir
- emake || die "compile failure"
-
-}
-
-gst-plugins_src_install() {
-
- gst-plugins_find_plugin_dir
- einstall || die
-
- dodoc README
-}
-
-
-gst-plugins_pkg_postinst() {
-
- gst-plugins_update_registry
-
-}
-
gst-plugins_pkg_postrm() {
-
- gst-plugins_update_registry
-
+ gst-register-${SLOT}
}
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS pkg_postrm
diff --git a/eclass/gtk-engines.eclass b/eclass/gtk-engines.eclass
deleted file mode 100644
index f75e9e69e6e3..000000000000
--- a/eclass/gtk-engines.eclass
+++ /dev/null
@@ -1,264 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines.eclass,v 1.38 2008/02/10 14:47:14 eva Exp $
-
-# IMPORTANT:
-# This eclass is deprecated and should not be used in new ebuilds.
-
-#
-# The gtk-engines eclass is inherited by all gtk-engines-* ebuilds.
-#
-# Please note that Gtk engines are special packages that mainly provide
-# common libraries for Gtk themes, and there is a special meta-package
-# that have what you're probably looking for: gtk-themes.
-#
-# If you want themes to make your GTK 2 apps look pretty, you can do
-# something like the following, and everything will be taken care of:
-#
-# emerge gtk-themes
-#
-# If themes for GTK 1 programs is what you're looking for, then something
-# like this should help you:
-#
-# emerge =gtk-themes-1*
-
-inherit eutils
-
-
-[ -n "$DEBUG" ] && einfo "Entering gtk-engines.eclass"
-
-[ -z "$DESCRIPTION" ] && DESCRIPTION="Based on the gtk-engines eclass"
-[ -z "$HOMEPAGE" ] && HOMEPAGE="http://www.gnome.org/"
-[ -z "$LICENSE" ] && LICENSE="GPL-2"
-
-KEYWORDS="x86 ppc alpha sparc hppa amd64"
-
-DEPEND=""
-
-case "${SLOT}" in
- "1" )
- DEPEND="${DEPEND} =x11-libs/gtk+-1.2*" ;;
- "2" )
- DEPEND="${DEPEND} >=x11-libs/gtk+-2" ;;
- * )
- DEPEND="${DEPEND} x11-libs/gtk+" ;;
-esac
-
-[ -n "$DEBUG" ] && einfo "SLOT is ${SLOT}"
-
-MY_PN="${PN}"
-INSTALL_FONTS=0
-ENGINE=${PN/gtk-engines-/}
-
-[ -n "$DEBUG" ] && einfo "ENGINE is ${ENGINE}"
-
-case "${ENGINE}" in
- "cleanice" )
- [ "$SLOT" -eq "2" ] && MY_PN="gtk-engines-cleanice2" ;;
-
- "crux" )
- MY_PN="crux" ;;
-
- "eazel" )
- MY_PN="eazel-engine" ;;
-
- "flat" )
- [ "$SLOT" -eq "2" ] && MY_PN="gtk-flat-theme-2.0" ;;
-
- "geramik" )
- MY_PN="3952-Geramik" ;;
-
- "lighthouseblue" )
- MY_PN="lighthouseblue" ;;
-
- "metal" | "notif" | "pixbuf" | "pixmap" | "raleigh" | "redmond95" )
- MY_PN="gtk-engines"
- if [ "$SLOT" -eq "2" ]
- then
- DEPEND="${DEPEND} >=dev-util/pkgconfig-0.12.0"
-
- # Do _NOT_ strip symbols in the build! Need both lines for Portage
- # 1.8.9+
- DEBUG="yes"
- RESTRICT="strip"
- # force debug information
- CFLAGS="${CFLAGS} -g"
- CXXFLAGS="${CXXFLAGS} -g"
-
- else
- DEPEND="${DEPEND} >=media-libs/imlib-1.8"
- fi
- ;;
-
- "mist" )
- MY_PN="GTK-mist-engine" ;;
-
- "thinice" )
- [ "$SLOT" -eq "2" ] && MY_PN="gtk-thinice-engine" ;;
-
- "xenophilia" )
- MY_PN="xenophilia"
- INSTALL_FONTS=1
- ;;
-
- "xfce" )
- MY_PN="gtk-xfce-engine" ;;
-esac
-
-MY_P="${MY_PN}-${PV}"
-
-[ -n "$DEBUG" ] && einfo "MY_P is ${MY_P}"
-
-if [ "X${ENGINE}" = "Xthinice" ] && [ "$SLOT" -eq "2" ]
-then
- SRC_URI="http://thinice.sourceforge.net/${MY_P}.tar.gz"
-
-elif [ "X${ENGINE}" = "Xmist" ]
-then
- SRC_URI="http://ftp.gnome.org/pub/GNOME/teams/art.gnome.org/themes/gtk2/${MY_P}.tar.gz"
-
-elif [ "X${ENGINE}" = "Xflat" ] && [ "$SLOT" -eq "2" ]
-then
- SRC_URI="http://download.freshmeat.net/themes/gtk2flat/gtk2flat-default.tar.gz"
-
-elif [ "X${ENGINE}" = "Xgeramik" ]
-then
- SRC_URI="http://www.kde-look.org/content/files/${MY_P}.tar.gz"
-
-elif [ "X${ENGINE}" = "Xxfce" ]
-then
- SRC_URI="mirror://sourceforge/xfce/${MY_P}.tar.gz"
-
-elif [ "X${ENGINE}" = "Xlighthouseblue" ]
-then
- SRC_URI="mirror://sourceforge/lighthouseblue/${MY_P}.tar.gz"
-
-elif [ "X${ENGINE}" = "Xcrux" ]
-then
- PVP=(${PV//[-\._]/ })
- SRC_URI="mirror://gnome/sources/${MY_PN}/${PVP[0]}.${PVP[1]}/${MY_P}.tar.bz2"
-
-elif [ "X${MY_PN}" = "Xgtk-engines" ] && [ "$SLOT" -eq "2" ]
-then
- PVP=(${PV//[-\._]/ })
- SRC_URI="mirror://gnome/sources/${MY_PN}/${PVP[0]}.${PVP[1]}/${MY_P}.tar.bz2"
-
-else
- SRC_PATH="${MY_PN:0:1}/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz"
- SRC_URI="http://ftp.debian.org/debian/pool/main/$SRC_PATH"
-fi
-
-[ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
-
-gtk-engines_src_unpack() {
- unpack ${A}
-
- [ -f "${FILESDIR}/${P}-gentoo.diff" ] && \
- patch -p0 < "${FILESDIR}/${P}-gentoo.diff"
-
- MY_DIR=`ls -t ${WORKDIR} | head -n 1`
-
- mv $MY_DIR $S
-}
-
-gtk-engines_src_compile() {
- econf || die "./configure failed"
-
- [ "X${MY_PN}" = "Xgtk-engines" ] && cd ${ENGINE}
-
- emake || die "Compilation failed"
-}
-
-gtk-engines_src_install() {
- [ "X${MY_PN}" = "Xgtk-engines" ] && cd ${ENGINE}
-
- # Some corrections to misc files
- if [ "X${ENGINE}" = "Xxenophilia" ]
- then
- dodir /usr/X11R6/$(get_libdir)/X11/fonts/misc
-
- mv fonts/Makefile fonts/Makefile.orig
- sed -e 's:/usr:${D}/usr:' \
- -e 's:local:misc:' \
- -e '7,8d' \
- fonts/Makefile.orig > fonts/Makefile || die
- rm fonts/Makefile.orig
- fi
-
- einstall \
- THEME_DIR=${D}/usr/share/themes \
- ENGINE_DIR=${D}/usr/$(get_libdir)/gtk/themes/engines \
- || die "Installation failed"
-
- # Remove unwanted stuff, since some engines include GTK-1 and GTK-2
- # support.
- if [ "X${ENGINE}" = "Xmist" ]
- then
- if [ "$SLOT" -eq "2" ]
- then
- rm -rf "${D}/usr/$(get_libdir)/gtk" "${D}/usr/share/themes/Mist/gtk"
- else
- rm -rf ${D}/usr/$(get_libdir)/gtk-2.0 ${D}/usr/share/themes/Mist/gtk-2.0
- fi
-
- rm -rf "${D}/usr/share/themes/Mist/metacity-1"
-
- elif [ "X${ENGINE}" = "Xgeramik" ]
- then
- if [ "$SLOT" -eq "2" ]
- then
- mv "${D}/usr/share/themes/Geramik/gtk/*png" \
- "${D}/usr/share/themes/Geramik/gtk-2.0"
- mv "${D}/usr/share/themes/Geramik/gtk-2.0/gtkrc-2.0" \
- "${D}/usr/share/themes/Geramik/gtk-2.0/gtkrc"
-
- rm -rf "${D}/usr/$(get_libdir)/gtk" "${D}/usr/share/themes/Geramik/gtk"
- else
- rm -rf "${D}/usr/$(get_libdir)/gtk-2.0" "${D}/usr/share/themes/Geramik/gtk-2.0"
- fi
-
- elif [ "X${ENGINE}" = "Xlighthouseblue" ]
- then
- if [ "$SLOT" -eq "2" ]
- then
- rm -rf "${D}/usr/$(get_libdir)/gtk" "${D}/usr/share/themes/LighthouseBlue/gtk"
- else
- rm -rf \
- "${D}/usr/$(get_libdir)/gtk-2.0" \
- "${D}/usr/share/themes/LighthouseBlue/gtk-2.0"
- fi
- fi
-
- for doc in AUTHORS BUGS ChangeLog CONFIGURATION COPYING CUSTOMIZATION \
- NEWS README THANKS TODO
- do
- [ -s $doc ] && dodoc $doc
- done
-}
-
-gtk-engines_pkg_postinst() {
- if [ "$INSTALL_FONTS" -ne 0 ]
- then
- echo ">>> Updating X fonts..."
- mkfontdir /usr/X11R6/$(get_libdir)/X11/fonts/misc
- xset fp rehash || fonts_notice
- fi
-}
-
-gtk-engines_pkg_postrm() {
- if [ "$INSTALL_FONTS" -ne 0 ]
- then
- echo ">>> Updating X fonts..."
- mkfontdir /usr/X11R6/$(get_libdir)/X11/fonts/misc
- xset fp rehash || fonts_notice
- fi
-}
-
-fonts_notice() {
- einfo "We can't reset the font path at the moment. You might want"
- einfo "to run the following command manually:"
- einfo ""
- einfo " xset fp rehash"
-}
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
diff --git a/eclass/gtk-engines2.eclass b/eclass/gtk-engines2.eclass
deleted file mode 100644
index 48c48465712d..000000000000
--- a/eclass/gtk-engines2.eclass
+++ /dev/null
@@ -1,135 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines2.eclass,v 1.16 2008/02/10 14:47:14 eva Exp $
-
-# IMPORTANT:
-# This eclass is deprecated and should not be used in new ebuilds.
-
-# Author: Alastair Tse <liquidx@gentoo.org>
-#
-# This is a utility eclass for installing GTK+ Theme Engines. It detects
-# whether gtk+-1 and/or gtk+-2 is installed and sets up variables to help with
-# installing the engines into the right position.
-#
-# Variables it sets are :
-#
-# HAS_GTK1 / HAS_GTK2 -- simply if GTK+1 or GTK+2 is installed
-# GTK1_ENGINES_DIR -- directory where gtk+1 engines are installed
-# GTK2_ENGINES_DIR -- directory where gtk+2 engines are installed
-#
-# *** NOTE *** If your engine has both GTK+1 and GTK+2 versions :
-#
-# Set the following variables if they are in different directories:
-#
-# GTK1_S -- GTK+1 Source Directory
-# GTK2_S -- GTK+2 Source Directory
-#
-# Also note you should not set DEPEND and let the eclass set the dependencies
-#
-# Comments:
-#
-# Most theme engines include ./configure scripts that solve most of the
-# path problems. Sometimes there are certain versions that have trouble
-# with paths. If they do, then you can use the above variables
-#
-# We do not employ USE flags "gtk" and "gtk2" because they are unsuitable
-# in this case. We install the whole package of themes available, both
-# GTK+1 and GTK+2 if available. We assume that the user would want both
-# since the space savings are negligible.
-#
-# Note that this deals specifically with GTK ENGINES and not GTK THEMES. Some
-# engines have themes that accompany them, and they are thus installed. You
-# should not be using this eclass (it won't help anyway) if you are making
-# a pure GTK+ theme ebuild.
-#
-# - liquidx@gentoo.org (16 Jun 2003)
-
-inherit eutils
-
-
-DESCRIPTION="GTK+1/2 ${PN/gtk-engines-} Theme Engine"
-HOMEPAGE="http://art.gnome.org/ http://themes.freshmeat.net/"
-
-# --- here we define some useful variables for gtk-engines installation
-
-if has_version "=x11-libs/gtk+-1.2*"; then
- HAS_GTK1=1
- GTK1_ENGINES_DIR=/usr/$(get_libdir)/gtk/themes/engines
-fi
-
-if has_version ">=x11-libs/gtk+-2" || use gtk2; then
- HAS_GTK2=1
- GTK_VERSION=$(pkg-config --variable=gtk_binary_version gtk+-2.0)
- GTK2_ENGINES_DIR=/usr/$(get_libdir)/gtk-2.0/${GTK_VERSION}/engines
-fi
-
-# --- define some deps for binary packages
-if [ -n "${HAS_GTK1}" -a ! -n "${HAS_GTK2}" ]; then
- DEPEND="${DEPEND} =x11-libs/gtk+-1.2*"
-elif [ -n "${HAS_GTK1}" -a -n "${HAS_GTK2}" ]; then
- DEPEND="${DEPEND} =x11-libs/gtk+-1.2* =x11-libs/gtk+-2*"
-elif [ ! -n "${HAS_GTK1}" -a -n "${HAS_GTK2}" ]; then
- DEPEND="${DEPEND} >=x11-libs/gtk+-2"
-fi
-
-# --- if we don't have any gtk version, we depend on USE flags to tell us
-# --- which one to use. otherwise, we don't add any deps. make the ebuild
-# --- tell us what DEPEND it wants.
-
-if ! has_version "x11-libs/gtk+"; then
- DEPEND="gtk2? ( >=x11-libs/gtk+-2 ) !gtk2? ( =x11-libs/gtk+-1.2* )"
- use gtk2 \
- && HAS_GTK2=1 \
- || HAS_GTK1=1
-fi
-
-# --- if GTK1_S and GTK2_S is set, then we do both themes,
-# --- otherwise, just do the normal src_compile/install wrap.
-
-gtk-engines2_src_compile() {
-
- if [ -n "${GTK2_S}" -a -n "${GTK1_S}" ]; then
- if [ -n "${HAS_GTK2}" ]; then
- cd ${GTK2_S}
- econf || die "gtk2 configure failed"
- emake || die "gtk2 make failed"
- fi
- if [ -n "${HAS_GTK1}" ]; then
- cd ${GTK1_S}
- econf || die "gtk1 configure failed"
- emake || die "gtk1 make failed"
- fi
- else
- cd "${S}"
- econf ${@} || die "configure failed"
- emake || make || die "make failed"
- fi
-}
-
-DEFAULT_DOCS="AUTHORS ChangeLog NEWS README"
-
-gtk-engines2_src_install() {
-
- if [ -n "${GTK2_S}" -a -n "${GTK1_S}" ]; then
- if [ -n "${HAS_GTK2}" ]; then
- cd ${GTK2_S}
- make DESTDIR="${D}" install || die "gtk2 install failed"
- for x in ${DEFAULT_DOCS} ${DOCS}; do
- newdoc ${x} ${x}.gtk2
- done
- fi
- if [ -n "${HAS_GTK1}" ]; then
- cd ${GTK1_S}
- make DESTDIR="${D}" install || die "gtk1 install failed"
- for x in ${DEFAULT_DOCS} ${DOCS}; do
- newdoc ${x} ${x}.gtk1
- done
- fi
- else
- cd "${S}"
- make DESTDIR="${D}" ${@} install || die "install failed"
- dodoc ${DEFAULT_DOCS} ${DOCS}
- fi
-}
-
-EXPORT_FUNCTIONS src_compile src_install
diff --git a/eclass/gtk-sharp-component.eclass b/eclass/gtk-sharp-component.eclass
index be1e1887b9d2..af55cd6eb62f 100644
--- a/eclass/gtk-sharp-component.eclass
+++ b/eclass/gtk-sharp-component.eclass
@@ -1,192 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-component.eclass,v 1.30 2009/02/08 20:29:53 loki_val Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-component.eclass,v 1.31 2009/11/30 04:19:36 abcd Exp $
-# Author : Peter Johanson <latexer@gentoo.org>
-# Based off of original work in gst-plugins.eclass by <foser@gentoo.org>
-
-inherit eutils mono multilib autotools
-
-LICENSE="LGPL-2"
-
-HOMEPAGE="http://gtk-sharp.sourceforge.net/"
-LICENSE="LGPL-2.1"
-RESTRICT="test"
-
-: GTK_SHARP_TARBALL_PREFIX=${GTK_SHARP_TARBALL_PREFIX:="gtk-sharp"}
-
-: GTK_SHARP_REQUIRED_VERSION=${GTK_SHARP_REQUIRED_VERSION:=${PV%.*}}
-
-[ "${PV:0:1}" == "2" ] \
- && SOURCE_SERVER="http://www.go-mono.com/sources/gtk-sharp-2.0/"
-
-# Can be switched to [ "${PV:0:3}" == "2.8" ] when 2.8.0 is out of the tree.
-[ "${PV}" == "2.8.2" ] \
- && SOURCE_SERVER="http://www.go-mono.com/sources/gtk-sharp-2.8/"
-
-[ "${PV%.*}" == "2.10" ] || [ "${PV%.*}" == "2.16" ] && \
- SOURCE_SERVER="mirror://gnome/sources/${GTK_SHARP_TARBALL_PREFIX}/${PV%.*}/"
-
-[ "${PV}" == "1.0.10" ] \
- && SOURCE_SERVER="http://www.go-mono.com/sources/gtk-sharp/"
-
-[ -z "${SOURCE_SERVER}" ] \
- && SOURCE_SERVER="mirror://sourceforge/gtk-sharp/"
-
-###
-# variable declarations
-###
-
-MY_P=${GTK_SHARP_TARBALL_PREFIX}-${PV}
-
-# From gtk-sharp-1.0 series
-my_gtk_sharp_components="art gda glade gnome gnomedb gtkhtml rsvg vte"
-
-# Added in gtk-sharp-2.0 series
-my_gtk_sharp_components="${my_gtk_sharp_components} gnomevfs panelapplet"
-
-# Version number used to differentiate between unversioned 1.0 series,
-# and the versioned 2.0 series (2.0 series has 2 or 2.0 appended to various
-# paths and scripts)
-GTK_SHARP_COMPONENT_SLOT=""
-GTK_SHARP_COMPONENT_SLOT_DEC=""
-
-# Extract the component to build from the ebuild name
-# May be set by an ebuild and contain more than one indentifier, space seperated
-# (only src_configure can handle mutiple plugins at this time)
-GTK_SHARP_COMPONENT_BUILD=${PN/-sharp/}
-
-# Use to enable any other dependancies needed to build this package
-GTK_SHARP_COMPONENT_BUILD_DEPS=""
-
-# Actual build dir, is the same as the configure switch name most of the time
-GTK_SHARP_COMPONENT_BUILD_DIR=${PN/-sharp/}
-
-DESCRIPTION="${GTK_SHARP_COMPONENT_BUILD} component of gtk-sharp"
-SRC_URI="${SOURCE_SERVER}/${MY_P}.tar.gz
- mirror://gentoo/${MY_P}-configurable.diff.gz"
-
-S=${WORKDIR}/${MY_P}
-
-# Make sure we're building with the same version.
-[[ "${ECLASS_DEPENDS}" = "no" ]] || DEPEND="=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*
- >=sys-apps/sed-4"
-
-
-###
-# public functions
-###
-
-gtk-sharp-component_fix_makefiles() {
- GAPI_DIR="${ROOT}/usr/share/gapi${GTK_SHARP_COMPONENT_SLOT_DEC}"
- GAPI_FIXUP="gapi${GTK_SHARP_COMPONENT_SLOT}-fixup"
- GAPI_CODEGEN="gapi${GTK_SHARP_COMPONENT_SLOT}-codegen"
- GTK_SHARP_LIB_DIR="${ROOT}/usr/$(get_libdir)/mono/gtk-sharp${GTK_SHARP_COMPONENT_SLOT_DEC}"
-
- local makefiles="$(find ${S} -name Makefile.in)"
- # Universal changes needed for all versions
- sed -i -e "s;\(\.\.\|\$(top_srcdir)\)/[[:alpha:]]*/\([[:alpha:]]*\(-[[:alpha:]]*\)*\).xml;${GAPI_DIR}/\2.xml;g" \
- -i -e "s;/r:\(\.\./\)*[[:alpha:]]*/\([[:alpha:]]*\(-[[:alpha:]]*\)*\).dll;/r:${GTK_SHARP_LIB_DIR}/\2.dll;g" \
- ${makefiles} || die "Failed to fix the gtk-sharp makefiles"
-
- if [ "${PV:0:1}" == "2" ] ; then
- sed -i -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \
- -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \
- -e "s:\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe:${GAPI_FIXUP}:" \
- -e "s:\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe:${GAPI_CODEGEN}:" \
- -e "s;\.\./[[:alpha:]]*/\([[:alpha:]]*\(-[[:alpha:]]*\)*\).dll;${GTK_SHARP_LIB_DIR}/\1.dll;g" \
- ${makefiles} || die "Failed to fix the gtk-sharp makefiles"
- fi
-
- # Changes specific to *-sharp-1.0.x
- if [ "${PV:0:3}" = "1.0" ] ; then
- sed -i -e "s:\$(RUNTIME) \.\./parser/gapi-fixup.exe:${GAPI_FIXUP}:" \
- -e "s:\$(RUNTIME) \.\./generator/gapi_codegen.exe:${GAPI_CODEGEN}:" \
- -e "s: \.\./generator/gapi_codegen.exe::" \
- ${makefiles} || die "Failed to fix the gtk-sharp makefiles"
- fi
-}
-
-gtk-sharp-component_src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Make the components configurable
- epatch "${WORKDIR}"/${MY_P}-configurable.diff
-
- # XXX: Gross hack to disable the GLADESHARP checks
- # in the gnome-sharp-2.16.0 release unless you really
- # need it. Remove this hack once this is moved into the
- # next iteration of 2.x.0-configurable.diff.gz
- if [ "${PV}" == "2.16.0" ] && [ "${PN}" != "gconf-sharp" ]
- then
- sed -i "s/\(.*GLADESHARP.*\)/# \1/g" configure.in || die
- fi
-
- # fixes support with pkgconfig-0.17, bug #92503
- sed -i -e 's/\<PKG_PATH\>/GTK_SHARP_PKG_PATH/g' \
- -e ':^CFLAGS=:d' \
- "${S}"/configure.in
-
- # Use correct libdir in pkgconfig files
- sed -i -e 's:^libdir.*:libdir=@libdir@:' \
- "${S}"/*/*.pc.in || die
-
- if [ -d "${S}/gconf/GConf" ]
- then
- sed -i -e 's:^libdir.*:libdir=@libdir@:' \
- "${S}"/gconf/GConf/*.pc.in || die
- fi
-
- if [ -f "${S}/sample/gconf/Makefile.am" ]
- then
- # Fix install data hook (bug #161093)
- sed -i -e 's/^install-hook/install-data-hook/' \
- "${S}"/sample/gconf/Makefile.am || die "sed failed"
- fi
-
- # disable building of samples (#16015)
- sed -i -e "s:sample::" "${S}"/Makefile.am || die
-
- eautoreconf
-
- cd "${S}"/${GTK_SHARP_COMPONENT_BUILD_DIR}
-
- gtk-sharp-component_fix_makefiles
-}
-
-gtk-sharp-component_src_configure() {
-
- # disable any external plugin besides the plugin we want
- local component deps gtk_sharp_conf
-
- einfo "Configuring to build ${PN} component ..."
-
- for component in ${GTK_SHARP_COMPONENT_BUILD} ${GTK_SHARP_COMPONENT_BUILD_DEPS}; do
- my_gtk_sharp_components=${my_gtk_sharp_components/${component}/}
- done
- for component in ${my_gtk_sharp_components}; do
- gtk_sharp_conf="${gtk_sharp_conf} --disable-${component} "
- done
- for component in ${GTK_SHARP_COMPONENT_BUILD} ${GTK_SHARP_COMPONENT_BUILD_DEPS}; do
- gtk_sharp_conf="${gtk_sharp_conf} --enable-${component} "
- done
-
- cd "${S}"
- econf ${@} ${gtk_sharp_conf} || die "./configure failure"
-}
-
-gtk-sharp-component_src_compile() {
- gtk-sharp-component_src_configure ${@}
-
- cd "${S}"/${GTK_SHARP_COMPONENT_BUILD_DIR}
- LANG=C emake -j1 || die "compile failure"
-}
-
-gtk-sharp-component_src_install() {
- cd ${GTK_SHARP_COMPONENT_BUILD_DIR}
- LANG=C make GACUTIL_FLAGS="/root ${D}/usr/$(get_libdir) /gacdir /usr/$(get_libdir) /package gtk-sharp${GTK_SHARP_COMPONENT_SLOT_DEC}" \
- DESTDIR="${D}" install || die
-}
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install
+# @DEAD
+# To be removed 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/iiimf.eclass b/eclass/iiimf.eclass
index ad6cdd3740c3..05bb9c7b5918 100644
--- a/eclass/iiimf.eclass
+++ b/eclass/iiimf.eclass
@@ -1,58 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.15 2006/11/01 17:32:00 flameeyes Exp $
-#
-# Author: Mamoru KOMACHI <usata@gentoo.org>
-#
-# The IIIMF eclass is used for compilation and installation of IIIMF
-# libraries, servers, clients and modules within the Portage system.
-#
-
-WANT_AUTOMAKE="1.4"
-WANT_AUTOCONF="2.5"
-
-inherit autotools
-
-EXPORT_FUNCTIONS src_compile src_install
-
-IMSDK_PV="r${PV//./_}"
-MY_PV="${IMSDK_PV/_pre/-svn}"
-MY_PV="${MY_PV/_p/-svn}"
-IMSDK_P="im-sdk-src-${MY_PV}"
-IMSDK="${IMSDK_P/-src/}"
-
-DESCRIPTION="Based on the $ECLASS eclass"
-HOMEPAGE="http://www.openi18n.org/subgroups/im/IIIMF/"
-SRC_URI="mirror://gentoo/${IMSDK_P}.tgz
- http://dev.gentoo.org/~usata/distfiles/${IMSDK_P}.tgz"
-
-LICENSE="MIT X11"
-SLOT="0"
-KEYWORDS="~x86"
-IUSE="debug"
-
-S="${WORKDIR}/${IMSDK}/${PN}"
-
-RDEPEND=""
-DEPEND="dev-util/pkgconfig"
-
-iiimf_src_compile() {
-
- if [ "${PV:0:2}" -eq 12 ] ; then
- eautoreconf
- fi
-
- econf --enable-optimize \
- --localstatedir=/var \
- $(use_enable debug) || die
- # emake doesn't work on some libraries
- emake -j1 || die
-}
-
-iiimf_src_install() {
-
- einstall || die
-
- dodoc ChangeLog
-}
+# $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.16 2009/11/30 04:19:36 abcd Exp $
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/inherit.eclass b/eclass/inherit.eclass
deleted file mode 100644
index 548cfb8cfe27..000000000000
--- a/eclass/inherit.eclass
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/inherit.eclass,v 1.21 2004/06/25 00:39:48 vapier Exp $
-#
-# Author Dan Armak <danarmak@gentoo.org>
-
-##########################################################################
-#
-# This is required to exitst as without it older installed packages using the older
-# inherit method cannot be uninstalled. However, it doesn't need to contain any code :-)
-#
-##########################################################################
diff --git a/eclass/jakarta-commons.eclass b/eclass/jakarta-commons.eclass
deleted file mode 100644
index 560650b892e3..000000000000
--- a/eclass/jakarta-commons.eclass
+++ /dev/null
@@ -1,5 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/jakarta-commons.eclass,v 1.20 2005/09/18 14:36:15 axxo Exp $
-
-# This eclass has been removed
diff --git a/eclass/java-gnome.eclass b/eclass/java-gnome.eclass
index dc39377ed68d..dbaec3556f97 100644
--- a/eclass/java-gnome.eclass
+++ b/eclass/java-gnome.eclass
@@ -1,82 +1,7 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-gnome.eclass,v 1.4 2006/12/17 13:12:31 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-gnome.eclass,v 1.5 2009/11/30 04:19:36 abcd Exp $
-#
-# Original Author: Joshua Nichols <nichoj@gentoo.org>
-# Purpose: Reduce repeated code between the java-gnome packages to
-# to facilitate ease of maintenance.
-#
-
-# Must be before the gnome.org inherit
-GNOME_TARBALL_SUFFIX=${GNOME_TARBALL_SUFFIX:=gz}
-inherit java-pkg-2 eutils gnome.org
-
-
-HOMEPAGE="http://java-gnome.sourceforge.net/"
-LICENSE="LGPL-2.1"
-
-IUSE="gcj doc source"
-RDEPEND=">=virtual/jre-1.4"
-DEPEND=">=virtual/jdk-1.4
- source? ( app-arch/zip )
- dev-util/pkgconfig"
-
-# Do some heuristics to figure out what bindings this package is for
-# This may be overriden when needed from each ebuild
-if [[ -z ${JAVA_GNOME_BINDINGS} ]]; then
- JAVA_GNOME_BINDINGS=${PN}
- JAVA_GNOME_BINDINGS=${JAVA_GNOME_BINDINGS/-java/}
- # skip over glib because it's too good for our heuristic
- [[ ${JAVA_GNOME_BINDINGS} != "glib" ]] &&
- JAVA_GNOME_BINDINGS=${JAVA_GNOME_BINDINGS/lib/}
-fi
-
-# Filename of the jar that will be built/installed
-if [[ ${SLOT} != "0" ]]; then
- JAVA_GNOME_JARNAME="${JAVA_GNOME_BINDINGS}${SLOT}.jar"
-else
- JAVA_GNOME_JARNAME="${JAVA_GNOME_BINDINGS}.jar"
-fi
-
-# Full path to installed jar
-JAVA_GNOME_JARPATH="${JAVA_PKG_JARDEST}/${JAVA_GNOME_JARNAME}"
-
-# pkgconfig file for the package
-JAVA_GNOME_PC=${JAVA_GNOME_PC:="${JAVA_GNOME_BINDINGS}-java.pc"}
-
-# Override arguments to econf, by calling java-gnome_src_compile
-# with the extra args
-
-java-gnome_pkg_setup() {
- java-pkg-2_pkg_setup
- use gcj && java-pkg_ensure-gcj
-}
-
-java-gnome_src_compile() {
- JNI_INCLUDES=$(java-pkg_get-jni-cflags) \
- JAVAC="javac $(java-pkg_javac-args)" econf \
- $(use_with doc javadocs) \
- $(use_with gcj gcj-compile) \
- --with-jardir=${JAVA_PKG_JARDEST} \
- "$@" || die "configure failed"
-
- emake || die "emake failed"
-
- # Fix the broken pkgconfig file
- sed -i \
- -e "s:classpath.*$:classpath=\${prefix}/share/${JAVA_PKG_NAME}/lib/${JAVA_GNOME_JARNAME}:" \
- ${S}/${JAVA_GNOME_PC} || die "failed to tweak ${JAVA_NOME_PC}"
-}
-
-java-gnome_src_install() {
- emake DESTDIR=${D} install || die "install failed"
-
- java-pkg_regjar ${JAVA_GNOME_JARPATH}
- # Examples as documentation
- ! use doc && rm -rf ${D}/usr/share/doc/${PF}/examples
-
- use source && java-pkg_dosrc ${S}/src/java/*
-}
-
-EXPORT_FUNCTIONS pkg_setup src_compile src_install
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass
deleted file mode 100644
index 6a1d28f04f1d..000000000000
--- a/eclass/java-pkg.eclass
+++ /dev/null
@@ -1,496 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.52 2007/04/25 18:24:37 robbat2 Exp $
-
-inherit multilib
-
-EXPORT_FUNCTIONS pkg_setup
-
-# We need to do a few things to add compatibility between
-# generation-1 and generation-2.
-
-# First we make sure java-config-1 will be used
-export WANT_JAVA_CONFIG="1"
-
-# We can't depend on java-config directly because some packages use this eclass
-# only with the java use flag.
-# http://bugs.gentoo.org/show_bug.cgi?id=137971
-#DEPEND="
-# =dev-java/java-config-1.3*
-# =dev-java/java-config-2*"
-
-# During pkg_setup, we need to do a few extra things to ensure things work in a
-# mixed generation-1/generation-2 environment
-# TODO need to make sure everything that inherits java-pkg and has a pkg_setup
-# uses java-pkg_pkg_setup
-java-pkg_pkg_setup() {
- java-pkg_announce-qa-violation "using deprecated eclass java-pkg"
-
- # We need to do a little magic if java-config-2 is around
- if has_version "=dev-java/java-config-2*"; then
- # we only want to enable the Java stuff if
- # there isn't a Java use flag (means its a pure Java pckage)
- # or if there is a Java use flag and it is enabled
- if ! hasq java ${IUSE} || use java; then
- initialize-java-environment
- if [[ -n ${GENTOO_VM} ]]; then
- einfo "Using Generation-1 System VM: ${GENTOO_VM}"
- else
- echo
- eerror "There was a problem determining which VM to use for generation-1"
- eerror "This is because the way Java is handled on Gentoo has drastically changed."
- if ! has_version "=virtual/jdk-1.4*" || ! has_version "=virtual/jdk-1.3*"; then
- ewarn "There does not seem to be a 1.4 or 1.3 JDK installed."
- ewarn "You should probably install =virtual/jdk-1.4* or =virtual/jdk-1.3*"
- ewarn "It is important to have either a 1.4 or 1.3 JDK installed"
- ewarn "in order for the old and new Java systems to coexist"
- ewarn "Details about this can be found at:"
- ewarn "\thttp://overlays.gentoo.org/proj/java/wiki/Why_We_Need_Java14"
- ewarn "If you wonder why we can't just depend on the needed JDK version,"
- ewarn "then read https://bugs.gentoo.org/show_bug.cgi?id=144240"
- echo
- fi
-
- eerror "You should run, and follow the advice of:"
- eerror "\t/usr/bin/java-check-environment"
-
- eerror "You will also likely want to follow the Java Upgrade Guide:"
- eerror "\thttp://www.gentoo.org/proj/en/java/java-upgrade.xml"
- eerror "If you have problems with the guide, please see:"
- eerror "\thttp://overlays.gentoo.org/proj/java/wiki/Common_Problems"
- die "Expected VMHANDLE to be defined in the env"
- fi
- fi
- fi
-}
-
-initialize-java-environment() {
- if has_version "=dev-java/java-config-2*"; then
- # VMHANDLE is the variable in an env file that identifies how java-config-2
- # knows a VM. With each VM, we have a 'compatible' env file installed to
- # /etc/env.d/java, so java-config-1 can work.
- #
- # So, here we set GENTOO_VM to be VMHANDLE, and thus to the
- # generation-1 system VM.
- export GENTOO_VM=$(java-config-1 -g VMHANDLE)
-
- # use java-config-2, with GENTOO_VM set to generation-1 system vm, to
- # setup JAVA_HOME
- export JAVA_HOME=$(java-config-2 --jdk-home)
- export JDK_HOME=$(java-config-2 --jdk-home)
- # make sure JAVAC and JAVA are set correctly
- export JAVAC=$(java-config-2 --javac)
- export JAVA=$(java-config-2 --java)
- fi
- # Otherwise, JAVA_HOME should be defined already
-}
-
-# These are pre hooks to make sure JAVA_HOME is set properly.
-# note: don't need pkg_setup, since we define it here
-# FIXME remove these hooks after portage-2.1.1 is stable, as
-# it has proper env saving
-pre_src_unpack() {
- initialize-java-environment
-}
-
-pre_src_compile() {
- initialize-java-environment
-}
-
-pre_src_install() {
- initialize-java-environment
-}
-
-pre_src_test() {
- initialize-java-environment
-}
-
-pre_pkg_preinst() {
- initialize-java-environment
-}
-
-pre_pkg_postinst() {
- initialize-java-environment
-}
-
-
-pkglistpath="${T}/java-pkg-list"
-
-java-pkg_doclass()
-{
- debug-print-function ${FUNCNAME} $*
- java-pkg_dojar $*
-}
-
-java-pkg_do_init_()
-{
- debug-print-function ${FUNCNAME} $*
-
- if [ -z "${JARDESTTREE}" ] ; then
- JARDESTTREE="lib"
- SODESTTREE=$(get_libdir)
- fi
-
- # Set install paths
- sharepath="${DESTTREE}/share"
- if [ "$SLOT" == "0" ] ; then
- pkg_name="${PN}"
- else
- pkg_name="${PN}-${SLOT}"
- fi
-
- shareroot="${sharepath}/${pkg_name}"
-
- if [ -z "${jardest}" ] ; then
- jardest="${shareroot}/${JARDESTTREE}"
- fi
-
- if [ -z "${sodest}" ] ; then
- sodest="/opt/${pkg_name}/${SODESTTREE}"
- fi
-
- package_env="${D}${shareroot}/package.env"
-
- debug-print "JARDESTTREE=${JARDESTTREE}"
- debug-print "SODESTTREE=${SODESTTREE}"
- debug-print "sharepath=${sharepath}"
- debug-print "shareroot=${shareroot}"
- debug-print "jardest=${jardest}"
- debug-print "sodest=${sodest}"
- debug-print "package_env=${package_env}"
-
-}
-
-java-pkg_do_write_()
-{
- debug-print-function ${FUNCNAME} $*
- # Create directory for package.env
- dodir "${shareroot}"
-
- # Create package.env
- echo "DESCRIPTION=${DESCRIPTION}" > "${package_env}"
- echo "GENERATION=1" >> "${package_env}"
- if [ -n "${cp_pkg}" ]; then
- debug-print "cp_prepend: ${cp_prepend}"
- debug-print "cp_pkg: ${cp_pkg}"
- debug-print "cp_append: ${cp_append}"
- echo "CLASSPATH=${cp_prepend}:${cp_pkg}:${cp_append}" >> "${package_env}"
- fi
- if [ -n "${lp_pkg}" ]; then
- echo "LIBRARY_PATH=${lp_prepend}:${lp_pkg}:${lp_append}" >> "${package_env}"
- fi
- if [ -f ${pkglistpath} ] ; then
- pkgs=$(cat ${pkglistpath} | tr '\n' ':')
- echo "DEPEND=${pkgs}" >> "${package_env}"
- fi
-
- # Strip unnecessary leading and trailing colons
- sed -e "s/=:/=/" -e "s/:$//" -i "${package_env}"
-}
-
-java-pkg_do_getsrc_()
-{
- # Check for symlink
- if [ -L "${i}" ] ; then
- cp "${i}" "${T}"
- echo "${T}"/`/usr/bin/basename "${i}"`
-
- # Check for directory
- elif [ -d "${i}" ] ; then
- echo "java-pkg: warning, skipping directory ${i}"
- continue
- else
- echo "${i}"
- fi
-}
-
-
-java-pkg_doso()
-{
- debug-print-function ${FUNCNAME} $*
- [ -z "$1" ]
-
- java-pkg_do_init_
-
- # Check for arguments
- if [ -z "$*" ] ; then
- die "at least one argument needed"
- fi
-
- # Make sure directory is created
- if [ ! -d "${D}${sodest}" ] ; then
- install -d "${D}${sodest}"
- fi
-
- for i in $* ; do
- mysrc=$(java-pkg_do_getsrc_)
-
- # Install files
- install -m 0755 "${mysrc}" "${D}${sodest}" || die "${mysrc} not found"
- done
- lp_pkg="${sodest}"
-
- java-pkg_do_write_
-}
-
-java-pkg_dojar()
-{
- debug-print-function ${FUNCNAME} $*
- [ -z "$1" ]
-
- java-pkg_do_init_
-
- if [ -n "${DEP_PREPEND}" ] ; then
- for i in ${DEP_PREPEND}
- do
- if [ -f "${sharepath}/${i}/package.env" ] ; then
- debug-print "${i} path: ${sharepath}/${i}"
- if [ -z "${cp_prepend}" ] ; then
- cp_prepend=`grep "CLASSPATH=" "${sharepath}/${i}/package.env" | sed "s/CLASSPATH=//"`
- else
- cp_prepend="${cp_prepend}:"`grep "CLASSPATH=" "${sharepath}/${i}/package.env" | sed "s/CLASSPATH=//"`
- fi
- else
- debug-print "Error: Package ${i} not found."
- debug-print "${i} path: ${sharepath}/${i}"
- die "Error in DEP_PREPEND."
- fi
- debug-print "cp_prepend=${cp_prepend}"
-
- done
- fi
-
- if [ -n "${DEP_APPEND}" ] ; then
- for i in ${DEP_APPEND}
- do
- if [ -f "${sharepath}/${i}/package.env" ] ; then
- debug-print "${i} path: ${sharepath}/${i}"
- # Before removing the quotes this caused
- # https://bugs.gentoo.org/show_bug.cgi?id=155590
- # There was also an extra quote in the else that could also be
- # the cause.
- if [ -z "${cp_append}" ] ; then
- cp_append=$(grep "CLASSPATH=" "${sharepath}/${i}/package.env" \
- | sed -e "s/CLASSPATH=//" -e 's/"//g')
- else
- cp_append="${cp_append}:$(grep "CLASSPATH=" \
- "${sharepath}/${i}/package.env" \
- | sed -e "s/CLASSPATH=//" -e 's/"//g')"
- fi
- else
- debug-print "Error: Package ${i} not found."
- debug-print "${i} path: ${sharepath}/${i}"
- die "Error in DEP_APPEND."
- fi
- debug-print "cp_append=${cp_append}"
- done
- fi
-
- # Check for arguments
- if [ -z "$*" ] ; then
- die "at least one argument needed"
- fi
-
- # Make sure directory is created
- dodir ${jardest}
-
- for i in $* ; do
- mysrc=$(java-pkg_do_getsrc_)
-
- # Install files
- install -m 0644 "${mysrc}" "${D}${jardest}" || die "${mysrc} not found"
-
- # Build CLASSPATH
- if [ -z "${cp_pkg}" ] ; then
- cp_pkg="${jardest}"/`/usr/bin/basename "${i}"`
- else
- cp_pkg="${cp_pkg}:${jardest}/"`/usr/bin/basename "${i}"`
- fi
- done
-
- java-pkg_do_write_
-}
-
-java-pkg_newjar()
-{
- if [ -z "${T}" ] || [ -z "${2}" ] ; then
- die "java-pkg_newjar: Nothing defined to do"
- fi
-
- rm -rf "${T}/${2}"
- cp "${1}" "${T}/${2}"
- java-pkg_dojar "${T}/${2}"
-}
-
-java-pkg_dowar()
-{
- debug-print-function ${FUNCNAME} $*
- [ -z "$1" ]
-
- # Check for arguments
- if [ -z "$*" ] ; then
- die "at least one argument needed"
- fi
-
- if [ -z "${WARDESTTREE}" ] ; then
- WARDESTTREE="webapps"
- fi
-
- sharepath="${DESTTREE}/share"
- shareroot="${sharepath}/${PN}"
- wardest="${shareroot}/${WARDESTTREE}"
-
- debug-print "WARDESTTREE=${WARDESTTREE}"
- debug-print "sharepath=${sharepath}"
- debug-print "shareroot=${shareroot}"
- debug-print "wardest=${wardest}"
-
- # Patch from Joerg Schaible <joerg.schaible@gmx.de>
- # Make sure directory is created
- if [ ! -d "${D}${wardest}" ] ; then
- install -d "${D}${wardest}"
- fi
-
- for i in $* ; do
- # Check for symlink
- if [ -L "${i}" ] ; then
- cp "${i}" "${T}"
- mysrc="${T}"/`/usr/bin/basename "${i}"`
-
- # Check for directory
- elif [ -d "${i}" ] ; then
- echo "dowar: warning, skipping directory ${i}"
- continue
- else
- mysrc="${i}"
- fi
-
- # Install files
- install -m 0644 "${mysrc}" "${D}${wardest}"
- done
-}
-
-java-pkg_dozip()
-{
- debug-print-function ${FUNCNAME} $*
- java-pkg_dojar $*
-}
-
-_record-jar()
-{
- echo "$(basename $2)@$1" >> ${pkglistpath}
-}
-
-java-pkg_jarfrom() {
- java-pkg_jar-from "$@"
-}
-
-java-pkg_jar-from()
-{
- debug-print-function ${FUNCNAME} $*
-
- local pkg=$1
- local jar=$2
- local destjar=$3
-
- if [ -z "${destjar}" ] ; then
- destjar=${jar}
- fi
-
- for x in $(java-config --classpath=${pkg} | tr ':' ' '); do
- if [ ! -f ${x} ] ; then
- die "Installation problems with jars in ${pkg} - is it installed?"
- return 1
- fi
- _record-jar ${pkg} ${x}
- if [ -z "${jar}" ] ; then
- [[ -f $(basename ${x}) ]] && rm $(basename ${x})
- ln -snf ${x} $(basename ${x})
- elif [ "$(basename ${x})" == "${jar}" ] ; then
- [[ -f ${destjar} ]] && rm ${destjar}
- ln -snf ${x} ${destjar}
- return 0
- fi
- done
- if [ -z "${jar}" ] ; then
- return 0
- else
- die "failed to find ${jar}"
- fi
-}
-
-java-pkg_getjar()
-{
-
- debug-print-function ${FUNCNAME} $*
-
- local pkg=$1
- local jar=$2
-
- for x in $(java-config --classpath=${pkg} | tr ':' ' '); do
-
- if [ ! -f ${x} ] ; then
- die "Installation problems with jars in ${pkg} - is it installed?"
- fi
-
- _record-jar ${pkg} ${x}
-
- if [ "$(basename ${x})" == "${jar}" ] ; then
- echo ${x}
- return 0
- fi
- done
- die "Could not find $2 in $1"
-}
-
-java-pkg_getjars()
-{
- java-config --classpath=$1
-}
-
-
-
-java-pkg_dohtml()
-{
- dohtml -f package-list $@
-}
-
-java-pkg_jarinto()
-{
- jardest=$1
-}
-
-java-pkg_sointo()
-{
- sodest=$1
-}
-
-java-pkg_dosrc() {
- java-pkg_do_init_
-
- [ $# -lt 1 ] && die "${FUNCNAME[0]}: at least one argument needed"
-
- local target="${shareroot}/source/"
-
- local files
- local startdir=$(pwd)
- for x in ${@}; do
- cd $(dirname ${x})
- zip -q -r ${T}/${PN}-src.zip $(basename ${x}) -i '*.java'
- local res=$?
- if [[ ${res} != 12 && ${res} != 0 ]]; then
- die "zip failed"
- fi
-
- cd ${startdir}
- done
-
- dodir ${target}
- install ${INSOPTIONS} "${T}/${PN}-src.zip" "${D}${target}" \
- || die "failed to install sources"
-}
-
-
-java-pkg_announce-qa-violation() {
- [[ "${JAVA_PKG_STRICT}" ]] && ewarn "Java QA Notice: $@"
-}
diff --git a/eclass/java-utils.eclass b/eclass/java-utils.eclass
index 31b4332ad922..4b731a73eb23 100644
--- a/eclass/java-utils.eclass
+++ b/eclass/java-utils.eclass
@@ -1,106 +1,7 @@
-#
-# Helper class for all Java packages
-#
-# Copyright (c) 2004, Thomas Matthijs <axxo@keanu.be>
-# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
-# Copyright (c) 2004, Gentoo Foundation
-#
-# Licensed under the GNU General Public License, v2
-#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils.eclass,v 1.11 2006/12/03 13:09:16 betelgeuse Exp $
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils.eclass,v 1.12 2009/11/30 04:19:36 abcd Exp $
-inherit eutils
-
-DESCRIPTION="Based on the $ECLASS eclass"
-
-JAVA_CONFIG_DEP="|| ( =dev-java/java-config-1.3* =dev-java/java-config-1.2* )"
-DEPEND="${JAVA_CONFIG_DEP}"
-RDEPEND="${JAVA_CONFIG_DEP}"
-
-export WANT_JAVA_CONFIG="1"
-
-EXPORT_FUNCTIONS pkg_setup
-
-java-utils_pkg_setup() {
- java-utils_ensure-jdk
-
- java-utils_vm-version-sufficient
-}
-
-java-utils_setup-vm() {
- local vendor=`java-utils_get-vm-vendor`
- if [[ ${vendor} = "sun-jdk" ]] && java-utils_is-vm-version-ge 1 5; then
- addpredict "/dev/random"
- elif [[ ${vendor} = "ibm-jdk-bin" ]]; then
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
- elif [[ ${vendor} = "jrockit-jdk-bin" ]]; then
- addwrite "/proc/cpuinfo"
- fi
-}
-
-java-utils_ensure-jdk() {
- if ! java-utils_is-vm-jdk; then
- eerror "A full JDK is needed by this package. You currently have no Java VM active or only a JRE"
- eerror "Please use java-config -S to set your system vm to a JDK"
- die "Active VM is not a JDK"
- fi
-}
-
-java-utils_is-vm-jdk() {
- if [ "$JDK_HOME" ] && [ "$JDK_HOME" == "$JAVA_HOME" ]; then
- return 0
- else
- return 1
- fi
-}
-
-java-utils_get-vm-vendor() {
- local vm=$(java-config -f)
- echo ${vm%-*}
-}
-
-java-utils_get-vm-version() {
- local version=$(java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/")
- echo ${version}
-}
-
-java-utils_vm-version-sufficient() {
- local version=$(echo ${DEPEND} | sed -e 's:.*virtual/jdk-\?\([^$ ]*\).*:\1:' -e 's:\.: :g')
- if [ "${version}" != "" ]; then
- java-utils_ensure-vm-version-ge ${version}
- fi
-}
-
-java-utils_ensure-vm-version-ge() {
- if ! java-utils_is-vm-version-ge $@ ; then
- eerror "This package requires a Java VM version >= $@"
- einfo "Please use java-config -S to set the correct one"
- die "Active Java VM too old"
- fi
-}
-
-java-utils_is-vm-version-ge() {
- local user_major=${1:-0}
- local user_minor=${2:-0}
- local user_patch=${3:-0}
- local user_version=${user_major}.${user_minor}.${user_patch}
-
- local vm_version=$(java-utils_get-vm-version)
-
- local vm_major=$(echo ${vm_version} | cut -d. -f1)
- local vm_minor=$(echo ${vm_version} | cut -d. -f2)
- local vm_patch=$(echo ${vm_version} | cut -d. -f3)
- local vm_extra=$(echo ${vm_version} | cut -d. -f4)
-
- if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt ${user_minor} ] ; then
- echo "Detected a JDK >= ${user_version}"
- return 0
- elif [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -ge ${user_minor} ] && [ ${vm_patch} -ge ${user_patch} ] ; then
- echo "Detected a JDK >= ${user_version}"
- return 0
- else
- echo "Detected a JDK < ${user_version}"
- return 1
- fi
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/java-wsdp.eclass b/eclass/java-wsdp.eclass
deleted file mode 100644
index 7f1d1f61abf3..000000000000
--- a/eclass/java-wsdp.eclass
+++ /dev/null
@@ -1,3 +0,0 @@
-#
-# placeholder for dead eclass
-#
diff --git a/eclass/java.eclass b/eclass/java.eclass
index 0754bb2ae058..bec651161756 100644
--- a/eclass/java.eclass
+++ b/eclass/java.eclass
@@ -1,38 +1,12 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.32 2006/10/14 20:27:21 swegener Exp $
-#
-# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.33 2009/11/30 04:19:36 abcd Exp $
-inherit eutils
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
-DESCRIPTION="Based on the $ECLASS eclass"
-JAVA_CONFIG_DEP="|| ( =dev-java/java-config-1.3* =dev-java/java-config-1.2* )"
-DEPEND="${JAVA_CONFIG_DEP}
- sys-apps/findutils"
-RDEPEND="${JAVA_CONFIG_DEP}"
-
-export WANT_JAVA_CONFIG="1"
-
-VMHANDLE=${PN}-${PV}
-
-EXPORT_FUNCTIONS pkg_postinst pkg_prerm
-
-java_pkg_postinst() {
- local jdk=${PN#*-}
- if [ ${jdk:0:3} == "jdk" ]; then
- java_set_default_vm_
- else
- # Only install the JRE as the system default if there's no JDK
- # installed. Installing a JRE over an existing JDK will result
- # in major breakage, see #9289.
- if [ ! -f "${JAVAC}" ]; then
- ewarn "Found no JDK, setting ${VMHANDLE} as default system VM"
- java_set_default_vm_
- fi
- fi
- java_mozilla_clean_
-}
+EXPORT_FUNCTIONS pkg_prerm
java_pkg_prerm() {
if java-config -J | grep -q ${P} ; then
@@ -40,106 +14,3 @@ java_pkg_prerm() {
ewarn "Please run java-config -L then java-config -S to set a new system VM!"
fi
}
-
-java_set_default_vm_() {
- java-config --set-system-vm=${VMHANDLE}
- /usr/sbin/env-update
- source /etc/profile
-
- echo
- einfo " After installing ${P} this"
- einfo " was set as the default JVM to run."
- einfo " When finished please run the following so your"
- einfo " enviroment gets updated."
- eerror " /usr/sbin/env-update && source /etc/profile"
- einfo " Or use java-config program to set your preferred VM"
-}
-
-system_arch() {
- local sarch
- sarch=`echo $ARCH | sed -e s/[i]*.86/i386/ -e s/x86_64/amd64/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/`
- if [ -z "$sarch" ] ; then
- sarch=`uname -m | sed -e s/[i]*.86/i386/ -e s/x86_64/amd64/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/`
- fi
- echo $sarch
-}
-
-set_java_env() {
- dodir /etc/env.d/java
- platform=`system_arch`
-
- sed \
- -e "s/@P@/${P}/g" \
- -e "s/@PN@/${PN}/g" \
- -e "s/@PV@/${PV}/g" \
- -e "s/@PF@/${PF}/g" \
- -e "s/@PLATFORM@/${platform}/g" \
- -e "/^ADDLDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|" \
- < $1 \
- > ${D}/etc/env.d/java/20`basename $1` || die
-}
-
-
-java_get_plugin_dir_() {
- echo /usr/$(get_libdir)/nsbrowser/plugins
-}
-
-install_mozilla_plugin() {
- if [ ! -f ${D}/$1 ] ; then
- die "Cannot find mozilla plugin at ${D}/${1}"
- fi
-
- local plugin_dir=$(java_get_plugin_dir_)
- dodir ${plugin_dir}
- dosym ${1} ${plugin_dir}/javaplugin.so
-}
-
-java_mozilla_clean_() {
- #Because previously some ebuilds installed symlinks outside of pkg_install
- #and are left behind, which forces you to manualy remove them to select the
- #jdk/jre you want to use for java
- local plugin_dir=$(java_get_plugin_dir_)
- for file in ${plugin_dir}/javaplugin_*; do
- rm -f ${file}
- done
- for file in ${plugin_dir}/libjavaplugin*; do
- rm -f ${file}
- done
-}
-
-# Use this to remove libjsoundalsa.so from ${D}.
-# You generally would want to use this like:
-# use !alsa && java_remove-libjoundalsa /opt/${P}
-java_remove-libjsoundalsa() {
- [[ ${#} -ne 1 ]] && die "Expected one argument"
- local search_path="$@"
- local libs=$(find ${D}/${search_path} -name libjsoundalsa.so)
- if [[ -n ${libs} ]]; then
- rm ${libs} || die "Failed to delete ${libs}"
- fi
-}
-
-# Symlinks i386 to i?86. Updates env file to then use i?86
-# for LD_LIBRARY_PATH. See bug #23579.
-#
-# Takes an argument, which is a directory living in ${D}
-# which has a directory named i386, that should be i686, i486, etc.
-# This argument defaults to /opt/${P}/jre/lib
-fix-i386-dir() {
- [[ ${#} != 1 ]] && die "Expected one argument"
- local libdir=${1}
- if use x86; then
- local host=${CTARGET:-${CHOST}}
- host=${host%%-*}
-
- if [[ ${host} != i386 ]]; then
- local orig_dir="${libdir}/i386"
- local new_dir="${libdir}/${host}"
- dosym i386 ${new_dir} || die "Failed to dosym"
-
-
- sed -i -e "s/i386/${host}/g" \
- ${D}/etc/env.d/java/20${VMHANDLE} || die "Failed to sed"
- fi
- fi
-}
diff --git a/eclass/kde-base.eclass b/eclass/kde-base.eclass
deleted file mode 100644
index d166b2085598..000000000000
--- a/eclass/kde-base.eclass
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-base.eclass,v 1.24 2004/06/25 00:39:48 vapier Exp $
-#
-# Author Dan Armak <danarmak@gentoo.org>
-#
-# This was the kde ebuild for std. kde-dependant apps which follow configure/make/make install
-# procedures and have std. configure options.
-# it is now deprecated; apps should inherit kde directly.
-
-inherit kde
diff --git a/eclass/kde-dist.eclass b/eclass/kde-dist.eclass
index 723fffeef9a4..fcdc637df437 100644
--- a/eclass/kde-dist.eclass
+++ b/eclass/kde-dist.eclass
@@ -1,32 +1,7 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-dist.eclass,v 1.76 2009/11/01 08:23:56 abcd Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-dist.eclass,v 1.77 2009/11/30 04:19:36 abcd Exp $
# @DEAD
-# This eclass was only used for the old monolithic ebuilds; just enough
-# functionality remains to install 3.5.9 or remove old versions
-
-inherit kde
-
-need-kde ${PV}
-
-DESCRIPTION="KDE ${PV} - "
-HOMEPAGE="http://www.kde.org/"
-SRC_URI="mirror://kde/stable/${PV}/src/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="${KDEMAJORVER}.${KDEMINORVER}"
-
-# add blockers on split packages derived from this one
-for x in $(get-child-packages ${CATEGORY}/${PN}); do
- case ${EAPI:-0} in
- # Add EAPIs without SLOT dependencies.
- 0) DEPEND="${DEPEND} !=${x}-${KDEMAJORVER}.${KDEMINORVER}*"
- RDEPEND="${RDEPEND} !=${x}-${KDEMAJORVER}.${KDEMINORVER}*"
- ;;
- # EAPIs with SLOT dependencies.
- *) DEPEND="${DEPEND} !${x}:${SLOT}"
- RDEPEND="${RDEPEND} !${x}:${SLOT}"
- ;;
- esac
-done
+# To be removed 2011/11/01.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/kde-i18n.eclass b/eclass/kde-i18n.eclass
deleted file mode 100644
index 3b36be226922..000000000000
--- a/eclass/kde-i18n.eclass
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-i18n.eclass,v 1.48 2009/11/01 08:22:22 abcd Exp $
-
-# @DEAD
-# This eclass was only for very old versions of KDE, no longer used by
-# anything. Scheduled for removal after 2011/06/04.
diff --git a/eclass/kde-source.eclass b/eclass/kde-source.eclass
index 9e6dab713394..833258565b30 100644
--- a/eclass/kde-source.eclass
+++ b/eclass/kde-source.eclass
@@ -1,7 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-source.eclass,v 1.25 2009/11/01 08:22:22 abcd Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-source.eclass,v 1.26 2009/11/30 04:19:36 abcd Exp $
# @DEAD
# This eclass was only for very old cvs versions of KDE, no longer used by
# anything. Scheduled for removal after 2011/06/04.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/kernel-mod.eclass b/eclass/kernel-mod.eclass
deleted file mode 100644
index 53dcdc7b4481..000000000000
--- a/eclass/kernel-mod.eclass
+++ /dev/null
@@ -1,238 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-mod.eclass,v 1.16 2009/02/23 05:51:14 vapier Exp $
-
-# !!!!!!!!!!
-#
-# BEWARE: DO NOT USE. THIS ECLASS IS DEPRECATED AND BROKEN. DO NOT USE.
-# Use linux-mod.eclass and/or linux-info.eclass instead. --brix
-#
-# !!!!!!!!!!
-
-# This eclass provides help for compiling external kernel modules from
-# source.
-#
-# This eclass differs from kmod.eclass because it doesn't require modules
-# to be added to the kernel source tree first.
-
-DESCRIPTION="Based on the $ECLASS eclass"
-
-SRC_URI="${SRC_URI:-unknown - please fix me!!}"
-KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}"
-
-kernel-mod_getmakefilevar() {
- grep $1 $2 | head -n 1 | cut -d = -f 2- | awk '{ print $1 }'
-}
-
-kernel-mod_getversion() {
- # yes, this is horrible, but it is effective
- #
- # KV_DIR contains the real directory name of the directory containing
- # the Linux kernel that we are going to compile against
-
- if [ -h ${KERNEL_DIR} ] ; then
- einfo "${KERNEL_DIR} is a symbolic link"
- einfo "Determining the real directory of the Linux kernel source code"
- KV_DIR="`ls -ld --full-time ${KERNEL_DIR} | awk '{ print $11 }'`"
- elif [ -d ${KERNEL_DIR} ] ; then
- einfo "${KERNEL_DIR} is a real directory"
- KV_DIR="`ls -ld --full-time ${KERNEL_DIR} | awk '{ print $9 }'`"
- else
- eerror "Directory '${KERNEL_DIR}' cannot be found"
- die
- fi
- KV_DIR="`basename $KV_DIR`"
-
- # now, we need to break that down into versions
-
- KV_DIR_VERSION_FULL="`echo $KV_DIR | cut -f 2- -d -`"
-
- KV_DIR_MAJOR="`echo $KV_DIR_VERSION_FULL | cut -f 1 -d .`"
- KV_DIR_MINOR="`echo $KV_DIR_VERSION_FULL | cut -f 2 -d .`"
- KV_DIR_PATCH="`echo $KV_DIR_VERSION_FULL | cut -f 3 -d . | cut -f 3 -d -`"
- KV_DIR_TYPE="`echo $KV_DIR_VERSION_FULL | cut -f 2- -d -`"
-
- # sanity check - do the settings in the kernel's makefile match
- # the directory that the kernel src is stored in?
-
- KV_MK_FILE="${KERNEL_DIR}/Makefile"
- KV_MK_MAJOR="`kernel-mod_getmakefilevar VERSION $KV_MK_FILE`"
- KV_MK_MINOR="`kernel-mod_getmakefilevar PATCHLEVEL $KV_MK_FILE`"
- KV_MK_PATCH="`kernel-mod_getmakefilevar SUBLEVEL $KV_MK_FILE`"
- KV_MK_TYPE="`kernel-mod_getmakefilevar EXTRAVERSION $KV_MK_FILE`"
-
- KV_MK_VERSION_FULL="$KV_MK_MAJOR.$KV_MK_MINOR.$KV_MK_PATCH$KV_MK_TYPE"
-
- if [ "$KV_MK_VERSION_FULL" != "$KV_DIR_VERSION_FULL" ]; then
- ewarn
- ewarn "The kernel Makefile says that this is a $KV_MK_VERSION_FULL kernel"
- ewarn "but the source is in a directory for a $KV_DIR_VERSION_FULL kernel."
- ewarn
- ewarn "This goes against the recommended Gentoo naming convention."
- ewarn "Please rename your source directory to 'linux-${KV_MK_VERSION_FULL}'"
- ewarn
- fi
-
- # these variables can be used by ebuilds to determine whether they
- # will work with the targetted kernel or not
- #
- # do not rely on any of the variables above being available
-
- KV_VERSION_FULL="$KV_MK_VERSION_FULL"
- KV_MAJOR="$KV_MK_MAJOR"
- KV_MINOR="$KV_MK_MINOR"
- KV_PATCH="$KV_MK_PATCH"
- KV_TYPE="$KV_MK_TYPE"
-
- einfo "Building for Linux ${KV_VERSION_FULL} found in ${KERNEL_DIR}"
-}
-
-kernel-mod_configoption_present() {
- [ -e "${KERNEL_DIR}/.config" ] || die "kernel has not been configured yet"
-
- if egrep "^CONFIG_${1}=[ym]" ${ROOT}/usr/src/linux/.config >/dev/null
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel-mod_configoption_module() {
- [ -e "${KERNEL_DIR}/.config" ] || die "kernel has not been configured yet"
-
- if egrep "^CONFIG_${1}=[m]" ${ROOT}/usr/src/linux/.config >/dev/null
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel-mod_configoption_builtin() {
- [ -e "${KERNEL_DIR}/.config" ] || die "kernel has not been configured yet"
-
- if egrep "^CONFIG_${1}=[y]" ${ROOT}/usr/src/linux/.config >/dev/null
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel-mod_modules_supported() {
- kernel-mod_configoption_builtin "MODULES"
-}
-
-kernel-mod_check_modules_supported() {
- if ! kernel-mod_modules_supported
- then
- eerror "Your current kernel does not support loading external modules."
- eerror "Please enable \"Loadable module support\" (CONFIG_MODULES) in your kernel config."
- die "kernel does not support loading modules"
- fi
-}
-
-kernel-mod_checkzlibinflate_configured() {
- einfo "Checking for status of CONFIG_ZLIB_INFLATE support in your kernel"
-
- . ${KERNEL_DIR}/.config || die "kernel has not been configured yet"
- [ "$CONFIG_ZLIB_INFLATE" != "y" ] && kernel-mod_badconfig_zlib
- [ "$CONFIG_ZLIB_DEFLATE" != "y" ] && kernel-mod_badconfig_zlib
-
- # bug #27882 - zlib routines are only linked into the kernel
- # if something compiled into the kernel calls them
- #
- # plus, for the cloop module, it appears that there's no way
- # to get cloop.o to include a static zlib if CONFIG_MODVERSIONS
- # is on
-
- # get the line numbers of the lines that default CONFIG_ZLIB_INFLATE
- # to 'y'
-
- local LINENO_START
- local LINENO_END
- local SYMBOLS
- local x
-
- LINENO_END="`grep -n 'CONFIG_ZLIB_INFLATE y' ${KERNEL_DIR}/lib/Config.in | cut -d : -f 1`"
- LINENO_START="`head -n $LINENO_END ${KERNEL_DIR}/lib/Config.in | grep -n 'if \[' | tail -n 1 | cut -d : -f 1`"
- (( LINENO_AMOUNT = $LINENO_END - $LINENO_START ))
- (( LINENO_END = $LINENO_END - 1 ))
-
- SYMBOLS="`head -n $LINENO_END ${KERNEL_DIR}/lib/Config.in | tail -n $LINENO_AMOUNT | sed -e 's/^.*\(CONFIG_[^\" ]*\).*/\1/g;'`"
-
- # okay, now we have a list of symbols
- # we need to check each one in turn, to see whether it is set or not
-
- for x in $SYMBOLS ; do
- if [ "${!x}" = "y" ]; then
- # we have a winner!
- einfo "${x} ensures zlib is linked into your kernel - excellent"
- return 0
- fi
- done
-
- # if we get to here, the kernel config needs changing
- #
- # I have made this an error, because otherwise this warning will
- # scroll off the top of the screen and be lost
-
- eerror
- eerror "This kernel module requires ZLIB library support."
- eerror "You have enabled zlib support in your kernel, but haven't enabled"
- eerror "enabled any option that will ensure that zlib is linked into your"
- eerror "kernel."
- eerror
- eerror "Please ensure that you enable at least one of these options:"
- eerror
-
- for x in $SYMBOLS ; do
- eerror " * $x"
- done
-
- eerror
- eerror "Please remember to recompile and install your kernel, and reboot"
- eerror "into your new kernel before attempting to load this kernel module."
-
- die "Kernel doesn't include zlib support"
-}
-
-kernel-mod_src_compile() {
- emake KERNEL_DIR=${KERNEL_DIR} || die
-}
-
-kernel-mod_is_2_4_kernel() {
- kernel-mod_getversion
-
- if [ "${KV_MAJOR}" -eq 2 -a "${KV_MINOR}" -eq 4 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel-mod_is_2_5_kernel() {
- kernel-mod_getversion
-
- if [ "${KV_MAJOR}" -eq 2 -a "${KV_MINOR}" -eq 5 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel-mod_is_2_6_kernel() {
- kernel-mod_getversion
-
- if [ "${KV_MAJOR}" -eq 2 -a "${KV_MINOR}" -eq 6 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-EXPORT_FUNCTIONS src_compile
diff --git a/eclass/kernel.eclass b/eclass/kernel.eclass
index 4cb394d5e949..b2ac2648d892 100644
--- a/eclass/kernel.eclass
+++ b/eclass/kernel.eclass
@@ -1,209 +1,8 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.60 2005/07/21 17:14:26 mr_bones_ Exp $
-#
-# This eclass contains the common functions to be used by all lostlogic
-# based kernel ebuilds
-# with error handling contributions by gerk, and small fixes by zwelch
-# small naming fix by kain
-# moved set_arch_to_ functions to eutils -iggy (20041002)
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.61 2009/11/30 04:19:36 abcd Exp $
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst
-
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-
-HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/"
-LICENSE="GPL-2"
-IUSE="build"
-
-if [ "${ETYPE}" = "sources" ]
-then
- #kbd is needed to solve the loadkeys fiasco; binutils version needed to avoid Athlon/PIII/SSE assembler bugs.
- DEPEND="!build? ( sys-apps/sed
- >=sys-devel/binutils-2.11.90.0.31 )
- app-admin/addpatches"
- RDEPEND="${DEPEND}
- !build? ( >=sys-libs/ncurses-5.2
- dev-lang/perl
- virtual/modutils
- sys-devel/make )"
- PROVIDE="virtual/linux-sources"
-elif [[ ${CTARGET} == ${CHOST} ]]
-then
- if [ "${ETYPE}" = "headers" ]
- then
- PROVIDE="virtual/os-headers"
- else
- eerror "Unknown ETYPE=\"${ETYPE}\"!"
- die
- fi
-fi
-
-[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include"
-
-KV_MAJOR=$(echo ${KV} | cut -d. -f1)
-KV_MINOR=$(echo ${KV} | cut -d. -f2)
-KV_PATCH=$(echo ${KV} | cut -d. -f3)
-
-kernel_is_2_4() {
- if [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 4 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel_is_2_6() {
- if [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 5 -o ${KV_MINOR} -eq 6 ]
- then
- return 0
- else
- return 1
- fi
-}
-
-kernel_exclude() {
- for mask in ${KERNEL_EXCLUDE}
- do
- for patch in *${mask}*
- do
- einfo "Excluding: ${patch}"
- rm ${patch}
- done
- done
-}
-
-kernel_universal_unpack() {
- find . -iname "*~" -exec rm {} \; 2> /dev/null
-
- # Gentoo Linux uses /boot, so fix 'make install' to work properly
- # also fix the EXTRAVERSION
- cd ${S}
- mv Makefile Makefile.orig
- sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
- -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" \
- Makefile.orig >Makefile || die # test, remove me if Makefile ok
- rm Makefile.orig
-
- if [ -d "${S}/Documentation/DocBook" ]
- then
- cd ${S}/Documentation/DocBook
- sed -e "s:db2:docbook2:g" Makefile > Makefile.new \
- && mv Makefile.new Makefile
- cd ${S}
- fi
-
- if kernel_is_2_4 || [ ${ETYPE} == "headers" ]
- then
- # this file is required for other things to build properly,
- # so we autogenerate it
- set_arch_to_kernel
- make mrproper || die "make mrproper died"
- make include/linux/version.h || die "make include/linux/version.h failed"
- set_arch_to_portage
- echo ">>> version.h compiled successfully."
- fi
-}
-
-kernel_src_unpack() {
- kernel_exclude
-
- /usr/bin/addpatches . ${WORKDIR}/linux-${KV} || \
- die "Addpatches failed, bad KERNEL_EXCLUDE?"
-
- kernel_universal_unpack
-}
-
-kernel_src_compile() {
- if [ ${ETYPE} == "headers" ]
- then
- set_arch_to_kernel
- yes "" | make oldconfig
- set_arch_to_portage
- echo ">>> make oldconfig complete"
- fi
-}
-
-kernel_src_install() {
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R root:root *
- chmod -R a+r-w+X,u+w *
-
- # Cross-compiling support
- [ "${CTARGET}" = "${CHOST}" ] \
- && LINUX_INCDIR=/usr/include \
- || LINUX_INCDIR=/usr/${CTARGET}/include
- export LINUX_INCDIR
-
- cd ${S}
- if [ "$ETYPE" = "sources" ]
- then
- dodir /usr/src
- echo ">>> Copying sources..."
- if [ -d "${WORKDIR}/${KV}/docs/" ]
- then
- for file in $(ls -1 ${WORKDIR}/${KV}/docs/)
- do
- echo "XX_${file}*" >> patches.txt
- cat ${WORKDIR}/${KV}/docs/${file} >> patches.txt
- done
- fi
-
- if [ ! -f patches.txt ]
- then
- # patches.txt is empty so lets use our ChangeLog
- [ -f ${FILESDIR}/../ChangeLog ] && echo "Please check out the changelog for this package to find out more" > patches.txt
- fi
-
- if [ -f patches.txt ]; then
- dodoc patches.txt
- fi
- mv ${WORKDIR}/linux* ${D}/usr/src
- else
- # linux-headers
- dodir ${LINUX_INCDIR}/linux
- cp -ax ${S}/include/linux/* ${D}/${LINUX_INCDIR}/linux
- rm -rf ${D}/${LINUX_INCDIR}/linux/modules
- dodir ${LINUX_INCDIR}/asm
- cp -ax ${S}/include/asm/* ${D}/${LINUX_INCDIR}/asm
- fi
-}
-
-kernel_pkg_preinst() {
- if [ "$ETYPE" = "headers" ]
- then
- [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux
- [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm
- true
- fi
-}
-
-kernel_pkg_postinst() {
- [ "$ETYPE" = "headers" ] && return
- if [ ! -e ${ROOT}usr/src/linux ]
- then
- rm -f ${ROOT}usr/src/linux
- if use ppc
- then
- ln -sf ${PF} ${ROOT}/usr/src/linux
- else
- ln -sf linux-${KV} ${ROOT}/usr/src/linux
- fi
- fi
-
- echo
- einfo "After installing a new kernel of any version, it is important"
- einfo "that you have the appropriate /etc/modules.autoload.d/kernel-X.Y"
- einfo "created (X.Y is the first 2 parts of your new kernel version)"
- echo
- einfo "For example, this kernel will require:"
- einfo "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
- echo
-}
+# @DEAD
+# Replaced by kernel-2.eclass
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/kmod.eclass b/eclass/kmod.eclass
deleted file mode 100644
index e3f8eaeac697..000000000000
--- a/eclass/kmod.eclass
+++ /dev/null
@@ -1,324 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kmod.eclass,v 1.19 2006/02/28 03:05:59 vapier Exp $
-
-# !!!!!!!!!!
-#
-# BEWARE: DO NOT USE. THIS ECLASS IS DEPRECATED AND BROKEN. DO NOT USE.
-# Use linux-mod.eclass and/or linux-info.eclass instead. --brix
-#
-# !!!!!!!!!!
-
-# This eclass provides help for compiling external kernel modules from
-# source.
-#
-# BEWARE: This eclass is superceding the old kmod.eclass. It does *not*
-# implement the same functionality as the old kmod.eclass!
-
-# DOCUMENTATION: Most documentation for this can be found at:
-# http://www.gentoo.org/doc/en/2.6-koutput.xml
-#
-# More documentation comments will follow in the header of this soon!
-
-# Variables you can use to change behavior
-#
-# KMOD_SOURCES - space seperated list of source to unpack in
-# src_unpack() if you don't want ${A} unpacked.
-#
-# KMOD_KOUTPUT_PATCH - Patch to apply in src_unpack() if a seperate output
-# directory is detected.
-#
-
-inherit eutils
-
-S=${WORKDIR}/${P}
-DESCRIPTION="Based on the $ECLASS eclass"
-
-SRC_URI="${SRC_URI:-unknown - please fix me!!}"
-KERNEL_DIR="${KERNEL_DIR:-${ROOT}/usr/src/linux}"
-
-EXPORT_FUNCTIONS src_unpack src_compile pkg_postinst
-
-kmod_get_make_var ()
-{
- grep "^${1}" ${2} | head -n 1 | grep -v ":=" | cut -d = -f 2- \
- | awk '{ print $1 }'
-}
-
-# getconfigvar() - Prints the value of a certain config varaible from the
-# current kernel's config file. Will return "n" for an unset
-# option
-
-kmod_get_config_var()
-{
- local configopt="CONFIG_${1}"
- local configresult
-
- if [ -z ${KV_OUTPUT} ]; then
- get_kernel_info
- fi
-
- configresult="`grep ^$configopt ${KV_OUTPUT}/.config | cut -d= -f 2-`"
- if [ -z "${configresult}" ]; then
- echo "n"
- else
- echo ${configresult} | awk '{ print $1 }'
- fi
-}
-
-# get_kernel_info is used to get our build environment. It initializes several
-# variables that can be used in ebuilds
-#
-# KV_MAJOR, KV_MINOR, KV_PATCH - the kernel major, minor, and pathlevel #'s
-# KV_TYPE - the type, as found from EXTRAVERSION.
-#
-# KV_VERSION_FULL - full string for the kernel version
-#
-# KV_OUTPUT - the output direcotry if used with a 2.6 kernel
-#
-# KV_OBJ - extension for kernel objects, "o" for 2.4 kernels and "ko" for 2.6
-#
-get_kernel_info()
-{
- # yes, this is horrible, but it is effective
- #
- # KV_DIR contains the real directory name of the directory containing
- # the Linux kernel that we are going to compile against
-
- if [ -h ${KERNEL_DIR} ] ; then
- einfo "`echo ${KERNEL_DIR} | tr -s /` is a symbolic link"
- einfo "Determining the real directory of the Linux kernel source code"
- KV_DIR="`readlink ${KERNEL_DIR}`"
- elif [ -d ${KERNEL_DIR} ] ; then
- einfo "`echo ${KERNEL_DIR} | tr -s /` is a real directory"
- KV_DIR="`ls -d ${KERNEL_DIR}`"
- # KV_DIR="`ls -ld --full-time ${KERNEL_DIR} | awk '{ print $9 }'`"
- else
- eerror "Directory '${KERNEL_DIR}' cannot be found"
- die
- fi
- KV_DIR="`basename ${KV_DIR}`"
-
- # now, we need to break that down into versions
-
- KV_DIR_VERSION_FULL="`echo $KV_DIR | cut -f 2- -d -`"
-
- KV_DIR_MAJOR="`echo ${KV_DIR_VERSION_FULL} | cut -f 1 -d .`"
- KV_DIR_MINOR="`echo ${KV_DIR_VERSION_FULL} | cut -f 2 -d .`"
- KV_DIR_PATCH="`echo ${KV_DIR_VERSION_FULL} | cut -f 3 -d . | cut -f 1 -d -`"
- KV_DIR_TYPE="`echo ${KV_DIR_VERSION_FULL} | cut -f 2- -d -`"
-
- # sanity check - do the settings in the kernel's makefile match
- # the directory that the kernel src is stored in?
-
- KV_MK_FILE="${KERNEL_DIR}/Makefile"
- KV_MK_MAJOR="`kmod_get_make_var VERSION ${KV_MK_FILE}`"
- KV_MK_MINOR="`kmod_get_make_var PATCHLEVEL ${KV_MK_FILE}`"
- KV_MK_PATCH="`kmod_get_make_var SUBLEVEL ${KV_MK_FILE}`"
- KV_MK_TYPE="`kmod_get_make_var EXTRAVERSION ${KV_MK_FILE}`"
-
- KV_MK_VERSION_FULL="${KV_MK_MAJOR}.${KV_MK_MINOR}.${KV_MK_PATCH}${KV_MK_TYPE}"
-
- KV_MK_OUTPUT="`kmod_get_make_var KBUILD_OUTPUT ${KV_MK_FILE}`"
-
- # May need to deal with a dynamically set KBUILD_OUTPUT variable
- if [ "${KV_MK_OUTPUT/VERSION/}" != "${KV_MK_OUTPUT}" ]; then
- KV_MK_OUTPUT="${KV_MK_OUTPUT/\$(VERSION)/${KV_MK_MAJOR}}"
- KV_MK_OUTPUT="${KV_MK_OUTPUT/\$(PATCHLEVEL)/${KV_MK_MINOR}}"
- KV_MK_OUTPUT="${KV_MK_OUTPUT/\$(SUBLEVEL)/${KV_MK_PATCH}}"
- KV_MK_OUTPUT="${KV_MK_OUTPUT/\$(EXTRAVERSION)/${KV_MK_TYPE}}"
- fi
-
- if [ "$KV_MK_VERSION_FULL" != "${KV_DIR_VERSION_FULL}" ]; then
- ewarn
- ewarn "The kernel Makefile says that this is a ${KV_MK_VERSION_FULL} kernel"
- ewarn "but the source is in a directory for a ${KV_DIR_VERSION_FULL} kernel."
- ewarn
- ewarn "This goes against the recommended Gentoo naming convention."
- ewarn "Please rename your source directory to 'linux-${KV_MK_VERSION_FULL}'"
- ewarn
- fi
-
- # these variables can be used by ebuilds to determine whether they
- # will work with the targetted kernel or not
- #
- # do not rely on any of the variables above being available
-
- KV_VERSION_FULL="${KV_MK_VERSION_FULL}"
- KV_MAJOR="${KV_MK_MAJOR}"
- KV_MINOR="${KV_MK_MINOR}"
- KV_PATCH="${KV_MK_PATCH}"
- KV_TYPE="${KV_MK_TYPE}"
-
- # if we found an output location, use that. otherwise use KERNEL_DIR.
- if [ ! -z "${KV_MK_OUTPUT}" ]
- then
- KV_OUTPUT="${ROOT}/${KV_MK_OUTPUT}"
- else
- KV_OUTPUT="${KERNEL_DIR}"
- fi
-
- # KV_OBJ can be used when manually installing kernel modules
- if [ "${KV_MINOR}" -gt "4" ]
- then
- KV_OBJ="ko"
- else
- KV_OBJ="o"
- fi
-
- einfo "Building for Linux ${KV_VERSION_FULL} found in `echo ${KERNEL_DIR} | tr -s /`"
-
- if is_kernel 2 5 || is_kernel 2 6
- then
- einfo "which outputs to `echo ${KV_OUTPUT} | tr -s /`"
-
- # Warn them if they aren't using a different output directory
- if [ "${KV_OUTPUT}" = "${ROOT}/usr/src/linux" ]; then
- ewarn "By not using the kernel's ability to output to an alternative"
- ewarn "directory, some external module builds may fail."
- ewarn "See <insert link to user doc here>"
- fi
- fi
-}
-
-# kmod_make_linux_writeable() is used to allow portage to write to
-# /usr/src/linux. This is a BIG no-no, but the "easiest" way for
-# 2.6 module compilation. Since it's so horrible, we force users to accept
-# doing it via a variable controlled by /etc/env.d/20kernel and kernel-config
-
-kmod_make_linux_writable()
-{
- # LINUX_PORTAGE_WRITABLE is set in /etc/env.d/20kernel to "yes"
- # if someone really wants to do that
- [ -x ${ROOT}/usr/bin/config-kernel ] && LINUX_PORTAGE_WRITABLE="$(${ROOT}/usr/bin/config-kernel --is-writable)"
-
- if [ "${LINUX_PORTAGE_WRITABLE}" != "yes" ]
- then
- if [ "${FEATURES/sandbox/}" != "${FEATURES}" ]
- then
- eerror "Due to the 2.6 kernel build system, external module compilation"
- eerror "with a normal setup requires write access to ${KERNEL_DIR}"
- eerror "There are several ways to fix/prevent this."
- eerror "Users can willingly let portage make this writable by doing"
- eerror "# config-kernel --allow-writable yes"
- eerror "However, this is considered a security risk!"
- eerror ""
- eerror "The prefered method is to enable Gentoo's new 'koutput' method"
- eerror "for kernel modules. See the doc"
- eerror "http://www.gentoo.org/doc/en/2.6-koutput-user.xml"
- eerror "To enable this, you'll need to run"
- eerror "# config-kernel --output-dir /var/tmp/kernel-output"
- eerror "and then install a new kernel"
- die "Incompatible kernel setup"
- else
- ewarn "Detected sandbox disabled for kernel module ebuild"
- fi
- fi
-
- eerror "Making ${ROOT}/usr/src/linux-${KV} writable by portage!!!"
- addwrite ${ROOT}/usr/src/linux-${KV}
-}
-
-
-# kmod_do_buildpatches performs the needed koutput patches as needed
-kmod_do_buildpatches()
-{
- if [ -z ${KV_OUTPUT} ]; then
- get_kernel_info
- fi
-
- cd ${S}
- if is_koutput && [ -n "${KMOD_KOUTPUT_PATCH}" ]; then
- EPATCH_SINGLE_MESSAGE="Patching to enable koutput compatibility" \
- epatch ${KMOD_KOUTPUT_PATCH}
- fi
-}
-
-kmod_src_unpack () {
- check_KV
- kmod_universal_unpack
-}
-
-kmod_universal_unpack()
-{
- get_kernel_info
-
- # KMOD_SOURCES is used if you don't want to unpack just ${A}
- # It can be set to "none" if you need to unpack things by hand
- # (like the nvidia-kernel ebuild). If set to "none", you'll have
- # to do any patching by hand as ${S} won't be around yet!
- # You can just call kmod_do_buildpatches after unpacking ${S}
- # if need be.
- if [ -z "${KMOD_SOURCES}" ]
- then
- unpack ${A}
- elif [ "${KMOD_SOURCES}" != "none" ]
- then
- unpack ${KMOD_SOURCES}
- fi
-
- if is_kernel 2 5 || is_kernel 2 6
- then
- # If we have sources we've unpacked, patch as needed
- if [ "${KMOD_SOURCES}" != "none" ]; then
- kmod_do_buildpatches
- fi
- fi
-}
-
-kmod_src_compile () {
- if is_kernel 2 5 || is_kernel 2 6
- then
- # If we're on 2.5/2.6 and not koutputing, we need to make
- # /usr/src/linux writable to succeed
- if ! is_koutput
- then
- kmod_make_linux_writable
- fi
-
- unset ARCH
- fi
- emake KERNEL_DIR=${KERNEL_DIR} || die
-}
-
-kmod_pkg_postinst() {
- einfo "Checking kernel module dependancies"
- test -r "${ROOT}/${KV_OUTPUT}/System.map" && \
- depmod -ae -F "${ROOT}/${KV_OUTPUT}/System.map" -b "${ROOT}" -r ${KV}
-}
-
-# is_kernel() takes two arguments. They should be the major and minor number
-# of the kernel you'd like to check for. e.g.
-#
-# if is_kernel 2 6; then foo; fi
-#
-is_kernel() {
- if [ -z "${KV_MAJOR}" ]
- then
- get_kernel_info
- fi
-
- if [ "${KV_MAJOR}" -eq "${1}" -a "${KV_MINOR}" -eq "${2}" ]
- then
- return 0
- else
- return 1
- fi
-}
-
-# is_koutput() should be used to determing if we are using the koutput
-# method of compilation for 2.6 kernels
-
-is_koutput() {
- if [ -z ${KV_OUTPUT} ]
- then
- get_kernel_info
- fi
-
- if [ "${KV_OUTPUT}" != "${ROOT}/usr/src/linux" ]; then
- return 0
- else
- return 1
- fi
-}
-
diff --git a/eclass/koffice-i18n.eclass b/eclass/koffice-i18n.eclass
deleted file mode 100644
index 9bfd137c6616..000000000000
--- a/eclass/koffice-i18n.eclass
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/koffice-i18n.eclass,v 1.25 2009/11/01 08:22:22 abcd Exp $
-
-# @DEAD
-# This eclass was only for very old versions of KOffice, no longer used by
-# anything. Scheduled for removal after 2011/06/04.
diff --git a/eclass/mailer.eclass b/eclass/mailer.eclass
index 009544f4e240..63575aa4fd33 100644
--- a/eclass/mailer.eclass
+++ b/eclass/mailer.eclass
@@ -1,73 +1,16 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mailer.eclass,v 1.15 2005/08/05 08:26:34 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mailer.eclass,v 1.16 2009/11/30 04:19:36 abcd Exp $
-#
-# Original Authors: Fernando J. Pereda <ferdy@gentoo.org>
-# Tom Martin <slarti@gentoo.org>
-#
-# Purpose: eclass to intarface with net-mail/mailer-config, used to manage
-# multiple MTA's installed on a Gentoo system.
-#
-# Usage: call mailer_install_conf in src_install(), on the condition that
-# "mailwrapper" is in USE. If mailer_install_conf has no arguments,
-# ${FILESDIR}/mailer.conf will be installed to /etc/mail. If it is given a file
-# as argument, this will be used. Also, please note that there is no need to
-# IUSE="mailwrapper" or create RDEPENDS for mailwrapper as used to be the case.
-# As you can see below, these are now set by this eclass. This rule also holds
-# true for PROVIDE="virtual/mta".
-#
-##
-# Functions available for ebuilds:
-#
-# mailer_get_current() - Returns the current profile (i.e. postfix-2.2.3)
-# mailer_install_conf() - Installs the profile file in ${1} or
-# ${FILESDIR}/mailer.conf if ${1} is not specified.
-# mailer_set_profile() - Sets the current profile to ${1} or to ${P} if ${1}
-# is not specified.
-# mailer_wipe_confs() - Removes unused profiles (i.e. the profile exists but
-# the package is no longer available)
-##
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
-IUSE="mailwrapper"
-RDEPEND="mailwrapper? (
- || (
- net-mail/mailer-config
- app-admin/eselect
- )
- >=net-mail/mailwrapper-0.2.1-r1
- )
- !mailwrapper? (
- !virtual/mta
- )"
-PROVIDE="virtual/mta"
-
-EXPORT_FUNCTIONS pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS pkg_postrm
# Gets current mailer profile
mailer_get_current() {
mailer-config --get-current-profile
- return $?
-}
-
-# Installs a new mailer.conf given as an argument, else it installs
-# ${FILESDIR}/mailer.conf
-mailer_install_conf() {
- local newname
-
- if [[ ${PN} == "mailer-config" ]] ; then
- newname="default"
- else
- newname="${1:-${P}.mailer}"
- fi
-
- # If the newfile does not exist or the version in the system
- # differs from the one in FILESDIR/ (update); install it
- if [[ ! -f /etc/mail/${newname} ]] || \
- ! diff /etc/mail/${newname} "${FILESDIR}/mailer.conf" > /dev/null ; then
- insinto /etc/mail/
- newins "${FILESDIR}/mailer.conf" ${newname}
- fi
}
# Set current mailer profile
@@ -95,22 +38,6 @@ mailer_wipe_confs() {
eend 0
}
-mailer_pkg_postinst() {
- if use mailwrapper ; then
- if [[ $(mailer_get_current) == default ]] ; then
- mailer_set_profile
- else
- einfo " "
- einfo "Use either net-mail/mailer-config or app-admin/eselect to change"
- einfo "to this mailer profile:"
- einfo " "
- einfo " mailer-config --set-profile ${P}"
- einfo " eselect mailer set ${P}"
- einfo " "
- fi
- fi
-}
-
mailer_pkg_postrm() {
if use mailwrapper ; then
mailer_wipe_confs
diff --git a/eclass/matrox.eclass b/eclass/matrox.eclass
index 42e5230dc35a..d4d117c4cf54 100644
--- a/eclass/matrox.eclass
+++ b/eclass/matrox.eclass
@@ -1,104 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/matrox.eclass,v 1.19 2007/07/02 14:24:27 peper Exp $
-#
-# Author: Donnie Berkholz <spyderous@gentoo.org>
-#
-# This eclass is designed to reduce code duplication in the mtxdrivers* ebuilds.
-# The only addition to mtxdrivers-pro is OpenGL stuff.
+# $Header: /var/cvsroot/gentoo-x86/eclass/matrox.eclass,v 1.20 2009/11/30 04:19:36 abcd Exp $
-inherit eutils
-
-
-EXPORT_FUNCTIONS pkg_setup src_compile
-
-HOMEPAGE="http://www.matrox.com/mga/products/parhelia/home.cfm"
-
-LICENSE="Matrox"
-SLOT="0"
-RESTRICT="fetch strip"
-
-RDEPEND="virtual/linux-sources"
-
-matrox_pkg_setup() {
- # Set up X11 implementation
- X11_IMPLEM_P="$(best_version virtual/x11)"
- X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
- X11_IMPLEM="${X11_IMPLEM##*\/}"
- einfo "X11 implementation is ${X11_IMPLEM}."
-
- # Force XFree86 4.3.0, 4.2.1 or 4.2.0 to be installed unless FORCE_VERSION
- # is set. Need FORCE_VERSION for 4.3.99/4.4.0 compatibility until Matrox
- # comes up with drivers (spyderous)
- if has_version "x11-base/xfree"
- then
- local INSTALLED_X="`best_version x11-base/xfree`"
- GENTOO_X_VERSION_REVISION="${INSTALLED_X/x11-base\/xfree-}"
- GENTOO_X_VERSION="${GENTOO_X_VERSION_REVISION%-*}"
- if [ "${GENTOO_X_VERSION}" != "4.3.0" ]
- then
- if [ "${GENTOO_X_VERSION}" != "4.2.1" ]
- then
- if [ "${GENTOO_X_VERSION}" != "4.2.0" ]
- then
- if [ -n "${FORCE_VERSION}" ]
- then
- GENTOO_X_VERSION="${FORCE_VERSION}"
- else
- die "These drivers require XFree86 4.3.0, 4.2.1 or 4.2.0. Do FORCE_VERSION=version-you-want emerge ${PN} (4.3.0, 4.2.1 or 4.2.0) to force installation."
- fi
- fi
- fi
- fi
- # xorg-x11 compatibility
- elif has_version "x11-base/xorg-x11"
- then
- if [ "${FORCE_VERSION}" != "4.3.0" ]
- then
- die "Set FORCE_VERSION=4.3.0 to emerge this. Use at your own risk."
- fi
- GENTOO_X_VERSION="${FORCE_VERSION}"
- fi
-}
-
-matrox_src_compile() {
- # 2.6 builds use the ARCH variable
- set_arch_to_kernel
- export PARHELIUX="${PWD}/src"
- cd ${S}/src/kernel/parhelia
- ln -sf ../../../kernel/mtx_parhelia.o .
- cd ..
- # Can't use emake here
- make clean
- make || die "make failed"
- set_arch_to_portage
-}
-
-matrox_base_src_install() {
- # Kernel Module
- dodir /$(get_libdir)/modules/${KV}/kernel/drivers/video; insinto /$(get_libdir)/modules/${KV}/kernel/drivers/video
- doins src/kernel/mtx.o
-
- # X Driver (2D)
- dodir /usr/X11R6/$(get_libdir)/modules/drivers; insinto /usr/X11R6/$(get_libdir)/modules/drivers
- doins xfree86/${GENTOO_X_VERSION}/mtx_drv.o
-}
-
-matrox_base_pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- /sbin/update-modules
- fi
-
- if [ ! -d /dev/video ]
- then
- if [ -f /dev/video ]
- then
- einfo "NOTE: To be able to use busmastering, you MUST have /dev/video as"
- einfo "a directory, which means you must remove anything there first"
- einfo "(rm -f /dev/video), and mkdir /dev/video"
- else
- mkdir /dev/video
- fi
- fi
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/motif.eclass b/eclass/motif.eclass
deleted file mode 100644
index c86463da17a2..000000000000
--- a/eclass/motif.eclass
+++ /dev/null
@@ -1 +0,0 @@
-# placeholder for dead eclass
diff --git a/eclass/mozconfig.eclass b/eclass/mozconfig.eclass
index f374ac9d9a2a..485d31ad8dcc 100644
--- a/eclass/mozconfig.eclass
+++ b/eclass/mozconfig.eclass
@@ -1,325 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig.eclass,v 1.32 2009/04/29 09:34:09 armin76 Exp $
-#
-# mozconfig.eclass: the new mozilla.eclass
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig.eclass,v 1.33 2009/11/30 04:19:36 abcd Exp $
-inherit multilib flag-o-matic
-
-IUSE="debug gnome ipv6 moznoxft truetype xinerama"
-
-RDEPEND="x11-libs/libXrender
- x11-libs/libXt
- x11-libs/libXmu
- !moznoxft? ( x11-libs/libXft )
- >=media-libs/fontconfig-2.1
- >=sys-libs/zlib-1.1.4
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.2.1
- dev-libs/expat
- app-arch/zip
- app-arch/unzip
- >=www-client/mozilla-launcher-1.22
- >=x11-libs/gtk+-2.2.0
- >=dev-libs/glib-2.2.0
- >=x11-libs/pango-1.5.0
- >=dev-libs/libIDL-0.8.0
- gnome? ( >=gnome-base/gnome-vfs-2.3.5 )"
- #According to bugs #18573, #204520, and couple of others in Mozilla's
- #bugzilla. libmng and mng support has been removed in 2003.
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )"
-
-# Set by configure (plus USE_AUTOCONF=1), but useful for NSPR
-export MOZILLA_CLIENT=1
-export BUILD_OPT=1
-export NO_STATIC_LIB=1
-export USE_PTHREADS=1
-
-mozconfig_init() {
- declare enable_optimize pango_version myext x
- declare MOZ=$([[ ${PN} == mozilla || ${PN} == gecko-sdk ]] && echo true || echo false)
- declare FF=$([[ ${PN} == *firefox ]] && echo true || echo false)
- declare TB=$([[ ${PN} == *thunderbird ]] && echo true || echo false)
- declare SB=$([[ ${PN} == *sunbird ]] && echo true || echo false)
-
- ####################################
- #
- # Setup the initial .mozconfig
- # See http://www.mozilla.org/build/configure-build.html
- #
- ####################################
-
- case ${PN} in
- mozilla|gecko-sdk)
- # The other builds have an initial --enable-extensions in their
- # .mozconfig. The "default" set in configure applies to mozilla
- # specifically.
- : >.mozconfig || die "initial mozconfig creation failed"
- mozconfig_annotate "" --enable-extensions=default ;;
- *firefox)
- cp browser/config/mozconfig .mozconfig \
- || die "cp browser/config/mozconfig failed" ;;
- *thunderbird)
- cp mail/config/mozconfig .mozconfig \
- || die "cp mail/config/mozconfig failed" ;;
- *sunbird)
- cp calendar/sunbird/config/mozconfig .mozconfig \
- || die "cp calendar/sunbird/config/mozconfig failed" ;;
- esac
-
- ####################################
- #
- # CFLAGS setup and ARCH support
- #
- ####################################
-
- # Set optimization level based on CFLAGS
- if is-flag -O0; then
- mozconfig_annotate "from CFLAGS" --enable-optimize=-O0
- elif [[ ${ARCH} == hppa ]]; then
- mozconfig_annotate "more than -O0 causes segfaults on hppa" --enable-optimize=-O0
- elif [[ ${ARCH} == alpha || ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == ppc64 ]]; then
- mozconfig_annotate "more than -O1 causes segfaults on 64-bit (bug 33767)" \
- --enable-optimize=-O1
- elif is-flag -O1; then
- mozconfig_annotate "from CFLAGS" --enable-optimize=-O1
- else
- mozconfig_annotate "mozilla fallback" --enable-optimize=-O2
- fi
-
- # Now strip optimization from CFLAGS so it doesn't end up in the
- # compile string
- filter-flags '-O*'
-
- # Strip over-aggressive CFLAGS - Mozilla supplies its own
- # fine-tuned CFLAGS and shouldn't be interfered with.. Do this
- # AFTER setting optimization above since strip-flags only allows
- # -O -O1 and -O2
- strip-flags
-
- # -fstack-protector is in ALLOWED_FLAGS but breaks moz #83511
- #filter-flags -fstack-protector ; # commented out by solar
-
- # Additional ARCH support
- case "${ARCH}" in
- alpha)
- # Historically we have needed to add -fPIC manually for 64-bit.
- # Additionally, alpha should *always* build with -mieee for correct math
- # operation
- append-flags -fPIC -mieee
- ;;
-
- amd64|ia64)
- # Historically we have needed to add this manually for 64-bit
- append-flags -fPIC
- ;;
-
- ppc64)
- append-flags -fPIC -mminimal-toc
- ;;
-
- ppc)
- # Fix to avoid gcc-3.3.x micompilation issues.
- if [[ $(gcc-major-version).$(gcc-minor-version) == 3.3 ]]; then
- append-flags -fno-strict-aliasing
- fi
- ;;
-
- sparc)
- # Sparc support ...
- replace-sparc64-flags
- ;;
-
- x86)
- if [[ $(gcc-major-version) -eq 3 ]]; then
- # gcc-3 prior to 3.2.3 doesn't work well for pentium4
- # see bug 25332
- if [[ $(gcc-minor-version) -lt 2 ||
- ( $(gcc-minor-version) -eq 2 && $(gcc-micro-version) -lt 3 ) ]]
- then
- replace-flags -march=pentium4 -march=pentium3
- filter-flags -msse2
- fi
- fi
- ;;
- esac
-
- if [[ $(gcc-major-version) -eq 3 ]]; then
- # Enable us to use flash, etc plugins compiled with gcc-2.95.3
- mozconfig_annotate "building with >=gcc-3" --enable-old-abi-compat-wrappers
-
- # Needed to build without warnings on gcc-3
- CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
- fi
-
- # Go a little faster; use less RAM
- append-flags "$MAKEEDIT_FLAGS"
-
- # Define our plugin dirs for nsplugins-v2.patch
- #
- # This is the way we would *like* to do things. However ./configure chokes
- # on these definitions, so the real definitions happen in the ebuilds, just
- # before emake.
- #
- #append-flags "-DGENTOO_NSPLUGINS_DIR=\\\"/usr/$(get_libdir)/nsplugins\\\""
- #append-flags "-DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/$(get_libdir)/nsbrowser/plugins\\\""
-
- ####################################
- #
- # mozconfig setup
- #
- ####################################
-
- mozconfig_annotate gentoo \
- --disable-installer \
- --disable-pedantic \
- --enable-crypto \
- --with-system-jpeg \
- --with-system-png \
- --with-system-zlib \
- --without-system-nspr \
- --enable-default-toolkit=gtk2
- mozconfig_use_enable ipv6
- mozconfig_use_enable xinerama
-
- if [[ ${MOZ_FREETYPE2} == "no" ]] ; then
- # Newer mozilla/firefox builds should use xft and not freetype.
- # Should be default for mozilla-1.7.12 and mozilla-firefox-1.0.7.
- # Not sure if we should enable xft in this case, but might clash
- # with USE=moznoxft ...
- # https://bugzilla.mozilla.org/show_bug.cgi?id=234035#c139
- # https://bugzilla.mozilla.org/show_bug.cgi?id=215219i
- #mozconfig_use_enable truetype freetype2
- #mozconfig_use_enable truetype freetypetest
- mozconfig_annotate gentoo --disable-freetype2
- else
- mozconfig_use_enable truetype freetype2
- mozconfig_use_enable truetype freetypetest
- fi
-
- if use debug; then
- mozconfig_annotate +debug \
- --enable-debug \
- --enable-tests \
- --disable-reorder \
- --disable-strip \
- --disable-strip-libs \
- --enable-debugger-info-modules=ALL_MODULES
- else
- mozconfig_annotate -debug \
- --disable-debug \
- --disable-tests \
- --enable-reorder \
- --enable-strip \
- --enable-strip-libs
-
- # Currently --enable-elf-dynstr-gc only works for x86 and ppc,
- # thanks to Jason Wever <weeve@gentoo.org> for the fix.
- if use x86 || use ppc && [[ ${enable_optimize} != -O0 ]]; then
- mozconfig_annotate "${ARCH} optimized build" --enable-elf-dynstr-gc
- fi
- fi
-
- # Here is a strange one...
- if is-flag '-mcpu=ultrasparc*' || is-flag '-mtune=ultrasparc*'; then
- mozconfig_annotate "building on ultrasparc" --enable-js-ultrasparc
- fi
-
- # Check if we should enable Xft support...
- if use moznoxft; then
- mozconfig_annotate "disabling xft2 by request (+moznoxft)" --disable-xft
- else
- if [[ -x /usr/bin/pkg-config ]] && pkg-config xft; then
- if [[ ${MOZ_PANGO} == "yes" ]]; then
- mozconfig_annotate "-moznoxft" --enable-xft --enable-pango
- else
- mozconfig_annotate "-moznoxft" --enable-xft
- fi
- else
- mozconfig_annotate "no pkg-config xft" --disable-xft
- fi
- fi
-}
-
-# Simulate the silly csh makemake script
-makemake() {
- typeset m topdir
- for m in $(find . -name Makefile.in); do
- topdir=$(echo "$m" | sed -r 's:[^/]+:..:g')
- sed -e "s:@srcdir@:.:g" -e "s:@top_srcdir@:${topdir}:g" \
- < ${m} > ${m%.in} || die "sed ${m} failed"
- done
-}
-
-#
-# The following functions are for manipulating mozconfig
-#
-
-# mozconfig_annotate: add an annotated line to .mozconfig
-#
-# Example:
-# mozconfig_annotate "building on ultrasparc" --enable-js-ultrasparc
-# => ac_add_options --enable-js-ultrasparc # building on ultrasparc
-mozconfig_annotate() {
- declare reason=$1 x ; shift
- [[ $# -gt 0 ]] || die "mozconfig_annotate missing flags for ${reason}\!"
- for x in ${*}; do
- echo "ac_add_options ${x} # ${reason}" >>.mozconfig
- done
-}
-
-# mozconfig_use_enable: add a line to .mozconfig based on a USE-flag
-#
-# Example:
-# mozconfig_use_enable truetype freetype2
-# => ac_add_options --enable-freetype2 # +truetype
-mozconfig_use_enable() {
- declare flag=$(use_enable "$@")
- mozconfig_annotate "$(useq $1 && echo +$1 || echo -$1)" "${flag}"
-}
-
-# mozconfig_use_with: add a line to .mozconfig based on a USE-flag
-#
-# Example:
-# mozconfig_use_with kerberos gss-api /usr/$(get_libdir)
-# => ac_add_options --with-gss-api=/usr/lib # +kerberos
-mozconfig_use_with() {
- declare flag=$(use_with "$@")
- mozconfig_annotate "$(useq $1 && echo +$1 || echo -$1)" "${flag}"
-}
-
-# mozconfig_use_extension: enable or disable an extension based on a USE-flag
-#
-# Example:
-# mozconfig_use_extension gnome gnomevfs
-# => ac_add_options --enable-extensions=gnomevfs
-mozconfig_use_extension() {
- declare minus=$(useq $1 || echo -)
- mozconfig_annotate "${minus:-+}$1" --enable-extensions=${minus}${2}
-}
-
-# mozconfig_final: display a table describing all configuration options paired
-# with reasons, then clean up extensions list
-mozconfig_final() {
- declare ac opt hash reason
- echo
- echo "=========================================================="
- echo "Building ${PF} with the following configuration"
- grep ^ac_add_options .mozconfig | while read ac opt hash reason; do
- [[ -z ${hash} || ${hash} == \# ]] \
- || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
- printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
- done
- echo "=========================================================="
- echo
-
- # Resolve multiple --enable-extensions down to one
- declare exts=$(sed -n 's/^ac_add_options --enable-extensions=\([^ ]*\).*/\1/p' \
- .mozconfig | xargs)
- sed -i '/^ac_add_options --enable-extensions/d' .mozconfig
- echo "ac_add_options --enable-extensions=${exts// /,}" >> .mozconfig
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/mozilla.eclass b/eclass/mozilla.eclass
deleted file mode 100644
index eff6790a3339..000000000000
--- a/eclass/mozilla.eclass
+++ /dev/null
@@ -1,355 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla.eclass,v 1.34 2009/01/04 22:09:06 ulm Exp $
-#
-# You probably don't want to change this eclass. Newer ebuilds use
-# mozconfig.eclass instead.
-
-
-IUSE="java gnome gtk2 ldap debug xinerama xprint"
-# Internal USE flags that I do not really want to advertise ...
-IUSE="${IUSE} moznoxft"
-[[ ${PN} == mozilla || ${PN} == mozilla-firefox ]] && \
- IUSE="${IUSE} mozdevelop mozxmlterm"
-[[ ${PN} == mozilla ]] && \
- IUSE="${IUSE} mozsvg"
-
-RDEPEND="
- !moznoxft? ( x11-libs/libXft )
- >=media-libs/fontconfig-2.1
- >=sys-libs/zlib-1.1.4
- >=media-libs/jpeg-6b
- >=media-libs/libmng-1.0.0
- >=media-libs/libpng-1.2.1
- dev-libs/expat
- app-arch/zip
- app-arch/unzip
- gtk2? (
- >=x11-libs/gtk+-2.2.0
- >=dev-libs/glib-2.2.0
- >=x11-libs/pango-1.2.1
- >=dev-libs/libIDL-0.8.0
- gnome? ( >=gnome-base/gnome-vfs-2.3.5 ) )
- !gtk2? (
- =x11-libs/gtk+-1.2*
- =dev-libs/glib-1.2*
- =gnome-base/orbit-0* )
- >=www-client/mozilla-launcher-1.22"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-# Set by configure (plus USE_AUTOCONF=1), but useful for NSPR
-export MOZILLA_CLIENT=1
-export BUILD_OPT=1
-export NO_STATIC_LIB=1
-export USE_PTHREADS=1
-
-mozilla_conf() {
- declare enable_optimize pango_version myext x
- declare MOZ=$([[ ${PN} == mozilla ]] && echo true || echo false)
- declare FF=$([[ ${PN} == *firefox ]] && echo true || echo false)
- declare TB=$([[ ${PN} == *thunderbird ]] && echo true || echo false)
-
- ####################################
- #
- # CFLAGS setup and ARCH support
- #
- ####################################
-
- # Set optimization level based on CFLAGS
- if is-flag -O0; then
- mozilla_annotate "from CFLAGS" --enable-optimize=-O0
- elif [[ ${ARCH} == hppa ]]; then
- mozconfig_annotate "more than -O0 causes segfaults on hppa" --enable-optimize=-O0
- elif [[ ${ARCH} == alpha || ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == ppc64 ]]; then
- mozilla_annotate "more than -O1 causes segfaults on 64-bit (bug 33767)" \
- --enable-optimize=-O1
- elif is-flag -O1; then
- mozilla_annotate "from CFLAGS" --enable-optimize=-O1
- else
- mozilla_annotate "mozilla fallback" --enable-optimize=-O2
- fi
-
- # Now strip optimization from CFLAGS so it doesn't end up in the
- # compile string
- filter-flags '-O*'
-
- # Strip over-aggressive CFLAGS - Mozilla supplies its own
- # fine-tuned CFLAGS and shouldn't be interfered with.. Do this
- # AFTER setting optimization above since strip-flags only allows
- # -O -O1 and -O2
- strip-flags
-
- # Additional ARCH support
- case "${ARCH}" in
- alpha|amd64|ia64)
- # Historically we have needed to add this manually for 64-bit
- append-flags -fPIC
- ;;
-
- ppc64)
- append-flags -mminimal-toc
- append-flags -fPIC
- ;;
-
- ppc)
- # Fix to avoid gcc-3.3.x micompilation issues.
- if [[ $(gcc-major-version).$(gcc-minor-version) == 3.3 ]]; then
- append-flags -fno-strict-aliasing
- fi
- ;;
-
- sparc)
- # Sparc support ...
- replace-sparc64-flags
- ;;
-
- x86)
- if [[ $(gcc-major-version) -eq 3 ]]; then
- # gcc-3 prior to 3.2.3 doesn't work well for pentium4
- # see bug 25332
- if [[ $(gcc-minor-version) -lt 2 ||
- ( $(gcc-minor-version) -eq 2 && $(gcc-micro-version) -lt 3 ) ]]
- then
- replace-flags -march=pentium4 -march=pentium3
- filter-flags -msse2
- fi
- fi
- ;;
- esac
-
- if [[ $(gcc-major-version) -eq 3 ]]; then
- # Enable us to use flash, etc plugins compiled with gcc-2.95.3
- mozilla_annotate "building with >=gcc-3" --enable-old-abi-compat-wrappers
-
- # Needed to build without warnings on gcc-3
- CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
- fi
-
- ####################################
- #
- # myconf setup
- #
- ####################################
-
- # myconf should be declared local by the caller (src_compile).
- myconf="${myconf} \
- --disable-activex \
- --disable-activex-scripting \
- --disable-installer \
- --disable-pedantic \
- --enable-crypto \
- --enable-xterm-updates \
- --with-pthreads \
- --with-system-jpeg \
- --with-system-png \
- --with-system-zlib \
- --with-x \
- --without-system-nspr \
- --enable-default-toolkit=gtk2 \
- $(mozilla_use_enable ipv6) \
- $(mozilla_use_enable xinerama) \
- $(mozilla_use_enable xprint) \
- $(mozilla_use_enable truetype freetype2) \
- $(mozilla_use_enable truetype freetypetest)"
-
- # NOTE: QT and XLIB toolkit seems very unstable, leave disabled until
- # tested ok -- azarah
- if use gtk2; then
- mozilla_annotate +gtk2 --enable-default-toolkit=gtk2
- myconf="${myconf} $(mozilla_use_enable gnome gnomevfs)"
- else
- mozilla_annotate -gtk2 --enable-default-toolkit=gtk
- mozilla_annotate -gtk2 --disable-gnomevfs
- fi
-
- if use debug; then
- mozilla_annotate +debug \
- --enable-debug \
- --enable-tests \
- --disable-reorder \
- --disable-strip \
- --disable-strip-libs \
- --enable-debugger-info-modules=ALL_MODULES
- else
- mozilla_annotate -debug \
- --disable-debug \
- --disable-tests \
- --enable-reorder \
- --enable-strip \
- --enable-strip-libs
-
- # Currently --enable-elf-dynstr-gc only works for x86 and ppc,
- # thanks to Jason Wever <weeve@gentoo.org> for the fix.
- if use x86 || use ppc && [[ ${enable_optimize} != -O0 ]]; then
- mozilla_annotate "${ARCH} optimized build" --enable-elf-dynstr-gc
- fi
- fi
-
- # Here is a strange one...
- if is-flag '-mcpu=ultrasparc*'; then
- mozilla_annotate "building on ultrasparc" --enable-js-ultrasparc
- fi
-
- # Check if we should enable Xft support...
- if use moznoxft; then
- mozilla_annotate "disabling xft2 by request (+moznoxft)" --disable-xft
- elif use gtk2; then
- # We need Xft2.0 locally installed
- if [[ -x /usr/bin/pkg-config ]] && pkg-config xft; then
- # We also need pango-1.1, else Mozilla links to both
- # Xft1.1 *and* Xft2.0, and segfault...
- pango_version=$(pkg-config --modversion pango | cut -d. -f1,2)
- if [[ ${pango_version//.} -gt 10 ]]; then
- mozilla_annotate "gtk2 with xft2 (+gtk2 -moznoxft)" --enable-xft
- else
- mozilla_annotate "gtk2 without xft2 (bad pango version <1.1)" --disable-xft
- fi
- else
- mozilla_annotate "gtk2 without xft2 (no pkg-config xft)" --disable-xft
- fi
- else
- mozilla_annotate "gtk1 with xft2 (-gtk2 -moznoxft)" --enable-xft
- fi
-
- # Support some development/debugging stuff for web developers
- if ( ${MOZ} || ${FF} ) && use mozdevelop; then
- mozilla_annotate "+mozdevelop on ${PN}" \
- --enable-jsd \
- --enable-xpctools
- else
- mozilla_annotate "n/a on ${PN}" \
- --disable-jsd \
- --disable-xpctools
- fi
-
- # Some browser-only flags
- if ${MOZ} || ${FF}; then
- # Bug 60668: Galeon doesn't build without oji enabled, so enable it
- # regardless of java setting.
- myconf="${myconf} --enable-oji \
- --enable-mathml"
- else
- mozilla_annotate "n/a on ${PN}" --disable-oji
- fi
-
- # Some mailer-only flags
- if ${TB}; then
- # Set up extensions
- if [[ ${PV} < 0.8 ]]; then
- myext="pref,spellcheck,universalchardet,wallet"
- else
- myext="wallet,spellcheck,xmlextras,webservices"
- fi
-
- myconf="${myconf} --enable-single-profile \
- --enable-necko-protocols=http,file,jar,viewsource,res,data \
- --enable-image-decoders=default,-xbm \
- $(mozilla_use_enable ldap) \
- $(mozilla_use_enable ldap ldap-experimental) \
- --enable-extensions=${myext}"
-
- mozilla_annotate "n/a on ${PN}" \
- --disable-calendar \
- --disable-svg \
- --disable-necko-disk-cache \
- --disable-profilesharing \
- --disable-plugins
- fi
-
- # Some firefox-only flags
- if ${FF}; then
- # Set up extensions
- myext="cookie,inspector,negotiateauth,pref,transformiix,universalchardet,webservices,xmlextras,xml-rpc"
- [[ ${PV} < 1.0 ]] && myext="${myext},typeaheadfind"
- use mozdevelop && myext="${myext},venkman"
- use gnome && use gtk2 && myext="${myext},gnomevfs"
-
- myconf="${myconf} \
- --enable-single-profile \
- --enable-extensions=${myext}"
-
- mozilla_annotate "n/a on ${PN}" \
- --disable-mailnews \
- --disable-composer \
- --disable-ldap \
- --disable-profilesharing
- fi
-
- # Some moz-only flags
- if ${MOZ}; then
- # Set up extensions
- myext="default"
- use mozdevelop && myext="${myext},venkman"
- use gnome && myext="${myext},gnomevfs"
- use moznoirc && myext="${myext},-irc"
- use mozxmlterm && myext="${myext},xmlterm"
-
- myconf="${myconf} \
- $(mozilla_use_enable mozcalendar calendar) \
- $(mozilla_use_enable ldap) \
- $(mozilla_use_enable ldap ldap-experimental) \
- --enable-extensions=${myext}"
-
- if use moznomail && ! use mozcalendar; then
- mozilla_annotate "+moznomail -mozcalendar" --disable-mailnews
- fi
- if use moznocompose && use moznomail; then
- mozilla_annotate "+moznocompose +moznomail" --disable-composer
- fi
- # Re-enabled per bug 24522 (28 Apr 2004 agriffis)
- if use mozsvg; then
- export MOZ_INTERNAL_LIBART_LGPL=1
- mozilla_annotate "+mozsvg on ${PN}" \
- --enable-svg --enable-svg-renderer-libart
- else
- mozilla_annotate "-mozsvg" \
- --disable-svg
- fi
- fi
-
- # Report!
- echo
- echo "=========================================================="
- echo "Building ${PF} with the following configuration"
- for x in $(echo ${myconf} | sed 's/ /\n/g' | sort); do
- mozilla_explain "${x}"
- done
- echo "=========================================================="
- echo
-}
-
-# Simulate the silly csh makemake script
-makemake() {
- typeset m topdir
- for m in $(find . -name Makefile.in); do
- topdir=$(echo "$m" | sed -r 's:[^/]+:..:g')
- sed -e "s:@srcdir@:.:g" -e "s:@top_srcdir@:${topdir}:g" \
- < ${m} > ${m%.in} || die "sed ${m} failed"
- done
-}
-
-#
-# The following functions are internal to mozilla.eclass
-#
-
-mozilla_use_enable() {
- declare flag=$(use_enable "$@")
- mozilla_annotate "$(useq ${1} && echo +${1} || echo -${1})" "${flag}"
- echo "${flag}"
-}
-
-mozilla_annotate() {
- declare reason=${1} x ; shift
- [[ $# -gt 0 ]] || die "mozilla_annotate missing flags for ${reason}!"
- mkdir -p ${T}/annotations
- for x in ${*}; do
- myconf="${myconf} ${x}"
- echo "${reason}" > "${T}/annotations/${x%%=*}"
- done
-}
-
-mozilla_explain() {
- printf " %-30s %s\n" "${1}" "$(cat "${T}/annotations/${1%%=*}" 2>/dev/null)"
-}
diff --git a/eclass/myth.eclass b/eclass/myth.eclass
deleted file mode 100644
index 7c2e7db0b0d7..000000000000
--- a/eclass/myth.eclass
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/myth.eclass,v 1.20 2006/10/14 20:27:21 swegener Exp $
-#
-# Author: Daniel Ahlberg <aliz@gentoo.org>
-#
-
-#########################
-########################
-# DO NOT USE THIS FOR MYTHTV STUFF. Use mythtv-plugins.eclass
-#####################
-#####################
-
-inherit multilib versionator toolchain-funcs
-
-IUSE="nls debug"
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install
-
-MYTHPLUGINS="mythbrowser mythdvd mythgallery mythgame mythmusic mythnews mythphone mythvideo mythweather mythweb"
-
-atleast_0.18() {
- [[ $(get_version_component_range 1) > 0 || $(get_version_component_range 2) > 17 ]]
-}
-
-if atleast_0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
- S="${WORKDIR}/mythplugins-${PV}"
-fi
-
-myth_src_unpack() {
- if atleast_0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
- pkg_pro="mythplugins.pro"
- elif [ "${PN}" == "mythfrontend" ]; then
- pkg_pro="mythtv.pro"
- else
- pkg_pro="${PN}.pro"
- fi
-
- unpack ${A} ; cd ${S}
-
- sed -e "s:PREFIX = .*:PREFIX = /usr:" \
- -e "s:QMAKE_CXXFLAGS_RELEASE = .*:QMAKE_CXXFLAGS_RELEASE = ${CXXFLAGS}:" \
- -e "s:QMAKE_CFLAGS_RELEASE = .*:QMAKE_CFLAGS_RELEASE = ${CFLAGS}:" \
- -i 'settings.pro' || die "Initial setup failed"
-
- if ! use nls ; then
- sed -e "s:i18n::" \
- -i ${pkg_pro} || die "Disable i18n failed"
- fi
-
- if use debug ; then
- FEATURES="${FEATURES} nostrip"
- sed -e 's:#CONFIG += debug:CONFIG += debug:' \
- -e 's:CONFIG += release:#CONFIG += release:' \
- -i 'settings.pro' || die "enable debug failed"
- fi
-
- setup_pro
-
- find ${S} -name '*.pro' -exec sed -i \
- -e "s:\$\${PREFIX}/lib/:\$\${PREFIX}/$(get_libdir)/:g" \
- -e "s:\$\${PREFIX}/lib$:\$\${PREFIX}/$(get_libdir):g" \
- {} \;
-}
-
-myth_src_compile() {
- export QMAKESPEC="linux-g++"
-
- if atleast_0.18 ; then
- if hasq ${PN} ${MYTHPLUGINS} ; then
- for x in ${MYTHPLUGINS} ; do
- if [[ ${PN} == ${x} ]] ; then
- myconf="${myconf} --enable-${x}"
- else
- myconf="${myconf} --disable-${x}"
- fi
- done
- fi
-
- econf ${myconf}
- fi
-
- ${QTDIR}/bin/qmake -o "Makefile" "${S}/${pkg_pro}"
- emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" "${@}" || die
-}
-
-myth_src_install() {
- if atleast_0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
- cd ${S}/${PN}
- fi
-
- einstall INSTALL_ROOT="${D}"
- for doc in AUTHORS COPYING FAQ UPGRADING ChangeLog README; do
- test -e "${doc}" && dodoc ${doc}
- done
-}
diff --git a/eclass/nxserver-1.3.2.eclass b/eclass/nxserver-1.3.2.eclass
deleted file mode 100644
index 2edcbb2f3396..000000000000
--- a/eclass/nxserver-1.3.2.eclass
+++ /dev/null
@@ -1,151 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/nxserver-1.3.2.eclass,v 1.16 2007/07/02 14:17:26 peper Exp $
-#
-# DEPRECATED
-# eclass for handling the different nxserver binaries available
-# from nomachine's website
-
-inherit rpm eutils
-
-
-HOMEPAGE="http://www.nomachine.com/"
-IUSE=""
-LICENSE="nomachine"
-SLOT="0"
-KEYWORDS="x86 -ppc -sparc -alpha -mips"
-RESTRICT="mirror strip"
-
-SRC_URI="nxserver-${MY_PV}.i386.rpm"
-DEPEND="$DEPEND
- >=net-misc/nxclient-1.3.2"
-
-RDEPEND="$RDEPEND
- >=media-libs/jpeg-6b-r3
- >=sys-libs/glibc-2.3.2-r1
- >=sys-libs/zlib-1.1.4-r1
- >=net-misc/openssh-3.6.1_p2
- >=dev-lang/perl-5.8.0-r12"
-
-DEPEND="$DEPEND
- >=sys-apps/shadow-4.0.3-r6
- >=net-misc/openssh-3.6.1_p2
- >=net-misc/nxssh-1.3.2
- >=net-misc/nxproxy-1.3.2"
-
-S="${WORKDIR}"
-
-DESCRIPTION="an X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse"
-
-EXPORT_FUNCTIONS pkg_nofetch src_compile src_install pkg_postinst
-
-nxserver-1.3.2_pkg_nofetch () {
- eerror "This package requires you to purchase NX Server from:"
- eerror
- eerror " http://www.nomachine.com/download.php"
- eerror
- eerror "Please purchase the *$1* edition of NX Server packaged for"
- eerror "RedHat 9.0 and put the RPM file nxserver-1.2.2-72.i386.rpm"
- eerror "into $DISTDIR/"
- eerror
- eerror "This ebuild will also work with the evaluation version of"
- eerror "the *$1* edition of NX Server packaged for RedHat 9.0"
-
- die "Automatic download not supported"
-}
-
-nxserver-1.3.2_src_compile() {
- return;
-}
-
-nxserver-1.3.2_src_install() {
- einfo "Installing"
- find usr/NX/lib -type l -exec rm {} \;
-
- # NX changed the name of the passwords sample file in 1.3.0
-
- for x in passwd.sample passwords.sample ; do
- if [ -f usr/NX/etc/$x ]; then
- mv usr/NX/etc/$x usr/NX/etc/`basename $x .sample`
- fi
- done
-
- tar -cf - * | ( cd ${D} ; tar -xf - )
-
- dodir /usr/NX/var
- dodir /usr/NX/var/sessions
- touch ${D}/usr/NX/var/sessions/NOT_EMPTY
-
- doenvd ${FILESDIR}/1.3.0/50nxserver
-}
-
-nxserver-1.3.2_pkg_postinst() {
-
- # arg - the 'nx' user's home directory keeps moving
- #
- # release user homedir
- # 1.2.2 nx /usr/NX/home/nx
- # 1.3.0 nx /usr/NX/home
- # 1.3.2 nx /usr/NX/home/nx
-
- l_szPasswd=passwd
-
- if [ -f /usr/NX/etc/passwd -a -f /usr/NX/etc/passwords ]; then
- mv /usr/NX/etc/passwd /usr/NX/etc/passwords
- fi
- if [ -f /usr/NX/etc/passwords ]; then
- l_szPasswd=passwords
- fi
-
- # end of upgrade support
-
- einfo "Adding user 'nx' for the NX server"
- enewuser nx -1 /usr/NX/bin/nxserver /usr/NX/home/nx
-
- # we do this to move the home directory of older installs
-
- einfo "Setting home directory of user 'nx' to /usr/NX/home/nx"
- usermod -d /usr/NX/home/nx nx
-
- einfo "Changing permissions for files under /usr/NX"
- chown nx:root /usr/NX/etc/$l_szPasswd
- chmod 0600 /usr/NX/etc/$l_szPasswd
- chown -R nx:root /usr/NX/home/nx
- chown -R nx:root /usr/NX/var
-
- einfo "Generating SSH keys for the 'nx' user"
- if [ ! -f /usr/NX/etc/users.id_dsa ]; then
- ssh-keygen -q -t dsa -N '' -f /usr/NX/etc/users.id_dsa
- fi
- chown nx:root /usr/NX/etc/users.id_dsa
- cp -f /usr/NX/home/nx/.ssh/server.id_dsa.pub.key /usr/NX/home/nx/.ssh/authorized_keys2
-
- if [ ! -f /usr/NX/var/broadcast.txt ]; then
- einfo "Creating NX user registration database"
- touch /usr/NX/var/broadcast.txt
- chown nx:root /usr/NX/var/broadcast.txt
-
- ewarn "None of your system users are registered to use the NX Server."
- ewarn "To authorise a user, run:"
- ewarn "'/usr/NX/bin/nxserver --useradd <username>'"
- fi
-
- if [ ! -f /usr/NX/etc/key.txt ] ; then
- ewarn
- ewarn "You need to place your NX key.txt file into /usr/NX/etc/"
- ewarn "If you don't have one already, you can get an evaluation"
- ewarn "key, or purchase a full license, from www.nomachine.com"
- ewarn
- fi
-
- if [ ! -f /usr/NX/etc/node.conf ] ; then
- ewarn
- ewarn "To complete the installation, you must create a file called"
- ewarn "'/usr/NX/etc/node.conf'. An example configuration file can"
- ewarn "be found in /usr/NX/etc"
- ewarn
- fi
-
- # regen the ld.so cache, because Portage sometimes doesn't
- ldconfig -v > /dev/null
-}
diff --git a/eclass/nxserver-1.4.eclass b/eclass/nxserver-1.4.eclass
deleted file mode 100644
index 67702fb60b7a..000000000000
--- a/eclass/nxserver-1.4.eclass
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/nxserver-1.4.eclass,v 1.14 2007/07/02 14:24:27 peper Exp $
-#
-# DEPRECATED
-# eclass for handling the different nxserver binaries available
-# from nomachine's website
-#
-# now handles freenx as well
-
-inherit rpm eutils
-
-
-HOMEPAGE="http://www.nomachine.com/"
-IUSE=""
-LICENSE="nomachine"
-SLOT="0"
-RESTRICT="mirror strip"
-
-SRC_URI="nxserver-${MY_PV}.i386.rpm"
-DEPEND=">=sys-apps/shadow-4.0.3-r6
- >=net-misc/openssh-3.6.1_p2
- =net-misc/nxssh-1.4*
- =net-misc/nxproxy-1.4*
- =net-misc/nxclient-1.4*
- =net-misc/nx-x11-1.4*"
-
-RDEPEND=">=media-libs/jpeg-6b-r3
- >=sys-libs/glibc-2.3.2-r1
- >=sys-libs/zlib-1.1.4-r1
- >=net-misc/openssh-3.6.1_p2
- >=dev-lang/perl-5.8.0-r12"
-
-S="${WORKDIR}"
-
-DESCRIPTION="an X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse"
-
-EXPORT_FUNCTIONS pkg_setup src_compile src_install pkg_postinst
-
-nxserver-1.4_pkg_setup() {
- einfo "Adding user 'nx' for the NX server"
- enewuser nx -1 -1 /usr/NX/home/nx
-}
-
-nxserver-1.4_src_compile() {
- return;
-}
-
-nxserver-1.4_src_install() {
- einfo "Installing"
- find usr/NX/lib -type l -exec rm {} \;
-
- # NX changed the name of the passwords sample file in 1.3.0
-
- for x in passwd.sample passwords.sample ; do
- if [ -f usr/NX/etc/$x ]; then
- mv usr/NX/etc/$x usr/NX/etc/`basename $x .sample`
- fi
- done
-
- # remove binaries installed by other packages
- for x in nxagent nxdesktop nxpasswd nxviewer ; do
- if [ -f usr/NX/bin/$x ]; then
- rm -f usr/NX/bin/$x
- fi
- done
-
- # remove libraries installed by other packages
- for x in usr/NX/lib/*.so.* ; do
- if [ -f $x ]; then
- rm -f $x
- fi
- done
-
- tar -cf - * | ( cd ${D} ; tar -xf - )
-
- dodir /usr/NX/var
- keepdir /usr/NX/var/sessions
-
- doenvd ${FILESDIR}/1.3.0/50nxserver
-}
-
-nxserver-1.4_pkg_postinst() {
-
- # arg - the 'nx' user's home directory keeps moving
- #
- # release user homedir
- # 1.2.2 nx /usr/NX/home/nx
- # 1.3.0 nx /usr/NX/home
- # 1.3.2 nx /usr/NX/home/nx
- # 1.4.0 nx /usr/NX/home/nx
-
- l_szPasswd=passwd
-
- if [ -f /usr/NX/etc/passwd -a -f /usr/NX/etc/passwords ]; then
- mv /usr/NX/etc/passwd /usr/NX/etc/passwords
- fi
- if [ -f /usr/NX/etc/passwords ]; then
- l_szPasswd=passwords
- fi
-
- # end of upgrade support
-
- # now that nxserver has been installed, we can change the shell
- # of the nx user to be the correct one
-
- echo "Setting nx's homedir to /usr/NX/bin/nxserver"
- chsh -s /usr/NX/bin/nxserver nx
-
- # we do this to move the home directory of older installs
-
- einfo "Setting home directory of user 'nx' to /usr/NX/home/nx"
- usermod -d /usr/NX/home/nx nx
-
- einfo "Changing permissions for files under /usr/NX"
- chown nx:root /usr/NX/etc/$l_szPasswd
- chmod 0600 /usr/NX/etc/$l_szPasswd
- chown -R nx:root /usr/NX
- chmod u+x /usr/NX/var/db/*
- chmod 755 /usr/NX/etc
-
- einfo "Generating SSH keys for the 'nx' user"
- if [ ! -f /usr/NX/etc/users.id_dsa ]; then
- ssh-keygen -q -t dsa -N '' -f /usr/NX/etc/users.id_dsa
- fi
- chown nx:root /usr/NX/etc/users.id_dsa
-
- cp -f /usr/NX/home/nx/.ssh/server.id_dsa.pub.key /usr/NX/home/nx/.ssh/authorized_keys2
- chown nx:root /usr/NX/home/nx/.ssh/authorized_keys2
- chmod 0600 /usr/NX/home/nx/.ssh/authorized_keys2
-
- if [ ! -f /usr/NX/var/broadcast.txt ]; then
- einfo "Creating NX user registration database"
- touch /usr/NX/var/broadcast.txt
- chown nx:root /usr/NX/var/broadcast.txt
-
- ewarn "None of your system users are registered to use the NX Server."
- ewarn "To authorise a user, run:"
- ewarn "'/usr/NX/bin/nxserver --useradd <username>'"
- fi
-
- if [ ! -f /usr/NX/etc/key.txt ] ; then
- ewarn
- ewarn "You need to place your NX key.txt file into /usr/NX/etc/"
- ewarn "If you don't have one already, you can get an evaluation"
- ewarn "key, or purchase a full license, from www.nomachine.com"
- ewarn
- ewarn "The key.txt file must be chmod'd 0400 and must owned by"
- ewarn "by the 'nx' user."
- fi
-
- if [ ! -f /usr/NX/etc/node.conf ] ; then
- ewarn
- ewarn "To complete the installation, you must create a file called"
- ewarn "'/usr/NX/etc/node.conf'. An example configuration file can"
- ewarn "be found in /usr/NX/etc"
- fi
-
- # regen the ld.so cache, because Portage sometimes doesn't
- ldconfig -v > /dev/null 2>&1
-}
diff --git a/eclass/nxserver.eclass b/eclass/nxserver.eclass
deleted file mode 100644
index 1fb696f88727..000000000000
--- a/eclass/nxserver.eclass
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/nxserver.eclass,v 1.23 2007/07/02 14:24:27 peper Exp $
-#
-# DEPRECATED
-# eclass for handling the different nxserver binaries available
-# from nomachine's website
-
-inherit rpm
-
-
-HOMEPAGE="http://www.nomachine.com/"
-IUSE=""
-LICENSE="nomachine"
-SLOT="0"
-KEYWORDS="x86 -ppc -sparc -alpha -mips"
-RESTRICT="mirror strip"
-
-SRC_URI="nxserver-${MY_PV}.i386.rpm"
-RDEPEND=">=media-libs/jpeg-6b-r3
- >=sys-libs/glibc-2.3.2-r1
- >=sys-libs/zlib-1.1.4-r1
- >=net-misc/openssh-3.6.1_p2
- >=dev-lang/perl-5.8.0-r12"
-
-DEPEND=">=sys-apps/shadow-4.0.3-r6
- >=net-misc/openssh-3.6.1_p2"
-
-S="${WORKDIR}"
-
-DESCRIPTION="an X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse"
-
-EXPORT_FUNCTIONS pkg_nofetch src_compile src_install pkg_postinst
-
-nxserver_pkg_nofetch () {
- eerror "This package requires you to purchase NX Server from:"
- eerror
- eerror " http://www.nomachine.com/download.php"
- eerror
- eerror "Please purchase the *$1* edition of NX Server packaged for"
- eerror "RedHat 9.0 and put the RPM file nxserver-1.2.2-72.i386.rpm"
- eerror "into $DISTDIR/"
- eerror
- eerror "This ebuild will also work with the evaluation version of"
- eerror "the *$1* edition of NX Server packaged for RedHat 9.0"
-
- die "Automatic download not supported"
-}
-
-nxserver_src_compile() {
- return;
-}
-
-nxserver_src_install() {
- einfo "Installing"
- find usr/NX/lib -type l -exec rm {} \;
-
- # NX changed the name of the passwords sample file in 1.3.0
-
- for x in passwd.sample passwords.sample ; do
- if [ -f usr/NX/etc/$x ]; then
- mv usr/NX/etc/$x usr/NX/etc/`basename $x .sample`
- fi
- done
-
- tar -cf - * | ( cd ${D} ; tar -xf - )
-
- dodir /usr/NX/var
- dodir /usr/NX/var/sessions
- touch ${D}/usr/NX/var/sessions/NOT_EMPTY
-
- doenvd ${FILESDIR}/${PV}/50nxserver
-}
-
-nxserver_pkg_postinst() {
-
- # this is support for users upgrading from NX 1.2.2 to 1.3.0
-
- l_szPasswd=passwd
-
- if [ -f /usr/NX/etc/passwd -a -f /usr/NX/etc/passwords ]; then
- mv /usr/NX/etc/passwd /usr/NX/etc/passwords
- fi
- if [ -f /usr/NX/etc/passwords ]; then
- l_szPasswd=passwords
- fi
-
- l_szHome=nxhome
- if [ -d /usr/NX/home ]; then
- l_szHome=home
- fi
-
- if [ -d /usr/NX/nxhome -a -d /usr/NX/home ]; then
- einfo "Moving home directory of user 'nx' to /usr/NX/home"
- usermod -d /usr/NX/home nx
- fi
-
- # end of upgrade support
-
- einfo "Adding user 'nx' for the NX server"
- enewuser nx -1 /usr/NX/bin/nxserver /usr/NX/$l_szHome
-
- einfo "Changing permissions for files under /usr/NX"
- chown nx:root /usr/NX/etc/$l_szPasswd
- chmod 0600 /usr/NX/etc/$l_szPasswd
- chown -R nx:root /usr/NX/$l_szHome
- chown -R nx:root /usr/NX/var
-
- einfo "Generating SSH keys for the 'nx' user"
- if [ ! -f /usr/NX/etc/users.id_dsa ]; then
- ssh-keygen -q -t dsa -N '' -f /usr/NX/etc/users.id_dsa
- fi
- chown nx:root /usr/NX/etc/users.id_dsa
- cp -f /usr/NX/$l_szHome/.ssh/server.id_dsa.pub.key /usr/NX/$l_szHome/.ssh/authorized_keys2
-
- if [ ! -f /usr/NX/var/broadcast.txt ]; then
- einfo "Creating NX user registration database"
- touch /usr/NX/var/broadcast.txt
- chown nx:root /usr/NX/var/broadcast.txt
-
- ewarn "None of your system users are registered to use the NX Server."
- ewarn "To authorise a user, run:"
- ewarn "'/usr/NX/bin/nxserver --useradd <username>'"
- fi
-
- if [ ! -f /usr/NX/etc/key.txt ] ; then
- ewarn
- ewarn "You need to place your NX key.txt file into /usr/NX/etc/"
- ewarn "If you don't have one already, you can get an evaluation"
- ewarn "key, or purchase a full license, from www.nomachine.com"
- ewarn
- fi
-
- if [ ! -f /usr/NX/etc/node.conf ] ; then
- ewarn
- ewarn "To complete the installation, you must create a file called"
- ewarn "'/usr/NX/etc/node.conf'. An example configuration file can"
- ewarn "be found in /usr/NX/etc"
- ewarn
- fi
-}
diff --git a/eclass/nxserver_1.5.eclass b/eclass/nxserver_1.5.eclass
deleted file mode 100644
index b73486ae2f11..000000000000
--- a/eclass/nxserver_1.5.eclass
+++ /dev/null
@@ -1,243 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/nxserver_1.5.eclass,v 1.7 2007/07/02 14:24:27 peper Exp $
-#
-# DEPRECATED
-# eclass for handling the different nxserver binaries available
-# from nomachine's website
-#
-# now handles freenx as well
-
-inherit rpm eutils
-
-HOMEPAGE="http://www.nomachine.com/"
-IUSE="prebuilt cups"
-LICENSE="nomachine"
-SLOT="0"
-RESTRICT="mirror strip fetch"
-
-SRC_URI="nxserver-${MY_PV}.i386.rpm"
-DEPEND="
- x11-proto/xproto
- x11-proto/xf86vidmodeproto
- x11-proto/glproto
- x11-proto/videoproto
- x11-proto/xextproto
- x11-proto/fontsproto
- x11-libs/libX11
- x11-libs/libFS
- x11-libs/libXvMC
- media-libs/mesa
- x11-misc/xdialog
- sys-apps/shadow
- net-misc/openssh
- !prebuilt? (
- =net-misc/nxssh-1.5*
- =net-misc/nxproxy-1.5*
- =net-misc/nx-x11-1.5*
- )
- prebuilt? (
- !net-misc/nxssh
- !net-misc/nxproxy
- !net-misc/nx-x11
- !net-misc/nxcomp
- )"
-
-RDEPEND="media-libs/jpeg
- sys-libs/zlib
- net-misc/openssh
- dev-lang/perl
- =net-misc/nxclient-1.5*"
-
-S="${WORKDIR}"
-
-DESCRIPTION="an X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse"
-
-EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_nofetch
-
-nxserver_1.5_pkg_nofetch() {
- eerror "Please download the $MY_EDITION edition of NXServer from:"
- eerror
- eerror " $MY_DOWNLOAD"
- eerror
- eerror "and save it onto this machine as:"
- eerror
- eerror " ${DISTDIR}/nxserver-${MY_EDITION}-${MY_PV}.i386.rpm"
- eerror
- eerror "** NOTE the change in filename! **"
-}
-
-nxserver_1.5_pkg_setup() {
- einfo "Adding user 'nx' for the NX server"
- enewuser nx -1 -1 /usr/NX/home/nx
-}
-
-nxserver_1.5_src_install() {
- einfo "Installing"
-
- # remove the pre-compiled binaries and libraries, if we are not
- # to use the !M prebuilt files
- if ! useq prebuilt ; then
- find usr/NX/lib -type l -exec rm {} \;
-
- for x in nxagent nxdesktop nxpasswd nxviewer ; do
- if [ -f usr/NX/bin/$x ]; then
- rm -f usr/NX/bin/$x
- fi
- done
-
- # remove libraries installed by other packages
- for x in usr/NX/lib/*.so.* ; do
- if [ -f $x ]; then
- rm -f $x
- fi
- done
- fi
-
- tar -cf - * | ( cd ${D} ; tar -xf - )
-
- dodir /usr/NX/var
- keepdir /usr/NX/var/sessions
-
- doenvd ${FILESDIR}/1.3.0/50nxserver
-}
-
-nxserver_1.5_pkg_postinst() {
-
- NX_ROOT=/usr/NX
-
- # the 'nx' user's home directory, from release to release
- #
- # release user homedir
- # 1.2.2 nx /usr/NX/home/nx
- # 1.3.0 nx /usr/NX/home
- # 1.3.2 nx /usr/NX/home/nx
- # 1.4.0 nx /usr/NX/home/nx
- # 1.5.0 nx /usr/NX/home/nx
-
- # we do this to move the home directory of older installs
- NX_HOME=${NX_ROOT}/home/nx
- einfo "Setting home directory of user 'nx' to ${NX_HOME}"
- usermod -d ${NX_HOME} nx
-
- # move the passwords file if necessary
- #
- # release passwords file
- # 1.4.0 /usr/NX/etc/passwords
- # 1.5.0 /usr/NX/etc/passwords.db
-
- NX_OLD_PASSWORD_DB="${NX_ROOT}/etc/passwords"
- NX_PASSWORD_DB="${NX_ROOT}/etc/passwords.db"
-
- if [[ -f ${NX_OLD_PASSWORD_DB} ]]; then
- mv ${NX_OLD_PASSWORD_DB} ${NX_PASSWORD_DB} || die "Unable to move passwords file"
- else
- einfo "Creating an empty password database"
- touch ${NX_PASSWORD_DB}
- fi
-
- chmod 0600 ${NX_PASSWORD_DB}
- chown nx:root ${NX_PASSWORD_DB}
-
- # move/generate the keys if necessary
- #
- # release keys file
- # 1.4.0 /usr/NX/etc/users.id_dsa
- # 1.5.0 /usr/NX/etc/node.localhost.id_dsa.pub
-
- NX_OLD_SERVER_SSHKEY="${NX_ROOT}/etc/users.id_dsa"
- NX_SERVER_SSHKEY="${NX_ROOT}/etc/node.localhost.id_dsa.pub"
-
- if [[ -f ${NX_OLD_SERVER_SSHKEY} ]]; then
- einfo "Re-using existing SSH key"
- mv ${NX_OLD_SERVER_SSHKEY} ${NX_SERVER_SSHKEY} || die "Unable to move SSH key"
- else
- einfo "Generating SSH key for the 'nx' user"
- ssh-keygen -q -t dsa -N '' -f ${NX_SERVER_SSHKEY}
- fi
- chmod 0600 ${NX_SERVER_SSHKEY}
- chown nx:root ${NX_SERVER_SSHKEY}
-
- # the user's database also moves around
- #
- # release location
- # 1.4.0 /usr/NX/etc/users
- # 1.5.0 /usr/NX/etc/users.db
-
- NX_OLD_USERS_DB="${NX_ROOT}/etc/users"
- NX_USERS_DB="${NX_ROOT}/etc/users.db"
-
- if [[ -f ${NX_OLD_USERS_DB} ]] ; then
- einfo "Re-using existing users database"
- mv ${NX_OLD_USERS_DB} ${NX_USERS_DB} || die "Unable to move users database"
- else
- einfo "Creating an empty users database"
- touch ${NX_USERS_DB}
- fi
-
- chmod 0600 ${NX_USERS_DB}
- chown nx:root ${NX_USERS_DB}
-
- # the license key file moves too
- #
- # release location
- # 1.4.0 /usr/NX/etc/key.txt
- # 1.5.0 /usr/NX/etc/server.lic
-
- NX_OLD_LICENSE_KEY="${NX_ROOT}/etc/key.txt"
- NX_LICENSE_KEY="${NX_ROOT}/etc/server.lic"
-
- if [[ -f ${NX_OLD_LICENSE_KEY} ]]; then
- einfo "Re-using existing license key"
- mv ${NX_OLD_LICENSE_KEY} ${NX_LICENSE_KEY} || die "Unable to move license key file"
- chmod 0400 ${NX_LICENSE_KEY}
- chown nx:root ${NX_LICENSE_KEY}
- fi
-
- # end of upgrade support
-
- # now that nxserver has been installed, we can change the shell
- # of the nx user to be the correct one
-
- echo "Setting nx's homedir to /usr/NX/bin/nxserver"
- chsh -s /usr/NX/bin/nxserver nx
-
- einfo "Changing permissions for files under /usr/NX"
- chown -R nx:root /usr/NX
- chmod u+x /usr/NX/var/db/*
- chmod 755 /usr/NX/etc
-
- # It seems to be default.id_dsa.pub in 1.5.0
- cp -pf /usr/NX/home/nx/.ssh/default.id_dsa.pub /usr/NX/home/nx/.ssh/authorized_keys2
- chown nx:root /usr/NX/home/nx/.ssh/authorized_keys2
- chmod 0600 /usr/NX/home/nx/.ssh/authorized_keys2
-
- # TODO:
- # what does the broadcast.txt file really do?
- if [ ! -f /usr/NX/var/broadcast.txt ]; then
- einfo "Creating NX user registration database"
- touch /usr/NX/var/broadcast.txt
- chown nx:root /usr/NX/var/broadcast.txt
-
- ewarn "None of your system users are registered to use the NX Server."
- ewarn "To authorise a user, run:"
- ewarn "'/usr/NX/bin/nxserver --useradd <username>'"
- fi
-
- if [[ ! -f ${NX_LICENSE_KEY} ]] ; then
- ewarn
- ewarn "You need to place your NX key.txt file into /usr/NX/etc/"
- ewarn "If you don't have one already, you can get an evaluation"
- ewarn "key, or purchase a full license, from www.nomachine.com"
- ewarn
- ewarn "The key.txt file must be chmod'd 0400 and must owned by"
- ewarn "by the 'nx' user."
- fi
-
- if [[ ! -f ${NX_ROOT}/etc/node.cfg ]] ; then
- ewarn
- ewarn "To complete the installation, you must create a file called"
- ewarn "'/usr/NX/etc/node.cfg'. An example configuration file can"
- ewarn "be found in /usr/NX/etc"
- fi
-}
diff --git a/eclass/pcmcia.eclass b/eclass/pcmcia.eclass
index 64c53f94dbb6..40e8f42d7030 100644
--- a/eclass/pcmcia.eclass
+++ b/eclass/pcmcia.eclass
@@ -1,125 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/pcmcia.eclass,v 1.11 2006/05/18 15:54:05 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/pcmcia.eclass,v 1.12 2009/11/30 04:19:36 abcd Exp $
-# pcmcia.eclass - This eclass facilities writing ebuilds for driver packages
-# that may need to build against the pcmcia-cs drivers, depending on kernel
-# support, pcmcia-cs version installed, etc.
-
-# It also ensures that any fixes need for pcmcia-cs configuration, driver
-# compilation, etc can be located in one spot and be consistent among all
-# driver packages
-
-# Author - Peter Johanson <latexer@gentoo.org>
-
-# Variables - You may safely use PCMCIA_SOURCE_DIR and PCMCIA_VERSION in ebuilds
-# if this information is needed. These will be blank if kernel PCMCIA support
-# is detected.
-
-# Functions - pcmcia_src_unpack unpacks and patches as needed the pcmcia-cs
-# sources in ${WORKDIR}/${PCMCIA_SOURCE_DIR} and set the two variables.
-
-# pcmcia_configure will configure the pcmcia-cs sources if that is needed
-
-inherit eutils
-
-DESCRIPTION="eclass for drivers that may build against pcmcia-cs"
-IUSE="pcmcia"
-
-# Be VERY careful when pumping the PCMCIA_BASE_VERSION. May require remaking some patches, etc
-# Ugly, but portage doesn't like more dynamics SRC_URIs.
-
-PCMCIA_BASE_VERSION="pcmcia-cs-3.2.5"
-PATCH_TO_3_2_6="pcmcia-cs-3.2.5-3.2.6.diff.gz"
-PATCH_TO_3_2_7="pcmcia-cs-3.2.5-3.2.7.diff.gz"
-
-SRC_URI="pcmcia? ( mirror://sourceforge/pcmcia-cs/${PCMCIA_BASE_VERSION}.tar.gz \
- http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-module-init-tools.diff.gz
- http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-SMP-fix.diff.gz
- http://dev.gentoo.org/~latexer/files/patches/${PATCH_TO_3_2_6} \
- http://dev.gentoo.org/~latexer/files/patches/${PATCH_TO_3_2_7} )"
-
-# This shouldn't be needed, as it fixes pcmcia-cs *compilation* on new benh
-# kernel's, but it's here to remind me in case it does become an issue
-#ppc? ( http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-ppc-fix.diff.gz ) )
-
-DEPEND="pcmcia? ( >=sys-apps/${PCMCIA_BASE_VERSION} )"
-
-pcmcia_src_unpack() {
- # So while the two eclasses exist side-by-side and also the ebuilds inherit
- # both we need to check for PCMCIA_SOURCE_DIR, and if we find it, then we
- # bail out and assume pcmcia.eclass is working on it.
- [[ -n ${PCMCIA_SOURCE_DIR} ]] && return 1
-
- cd ${WORKDIR}
- if use pcmcia ; then
- if egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null
- then
- # Sadly, we still need to download these sources in SRC_URI
- # til portage can handle more dynamic SRC_URIs
- einfo "Kernel PCMCIA detected. Skipping external pcmcia-cs sources."
- PCMCIA_VERSION=""
- PCMCIA_SOURCE_DIR=""
- else
- PCMCIA_SOURCE_DIR="${WORKDIR}/${PCMCIA_BASE_VERSION}"
-
- # We unpack the base version, figure out what is installed, then
- # patch up to that version. Ugly hack to avoid messy SRC_URIs
- unpack ${PCMCIA_BASE_VERSION}.tar.gz
- cd ${PCMCIA_SOURCE_DIR}
- epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-module-init-tools.diff.gz
- epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-SMP-fix.diff.gz
- PCMCIA_CS_EBUILD=(/var/db/pkg/sys-apps/pcmcia-cs-*/pcmcia-cs-*.ebuild) ## use bash globbing
- if [ ! -f "${PCMCIA_CS_EBUILD}" ]; then
- die "ERROR: pcmcia-cs ebuild (${PCMCIA_CS_EBUILD}) not found - are you sure pcmcia-cs is installed?"
- fi
- PCMCIA_CS_VER="${PCMCIA_CS_EBUILD##*/}" ## -> pcmcia-cs-VER.ebuild
- PCMCIA_CS_VER="${PCMCIA_CS_VER/pcmcia-cs-/}" ## strip 'pcmcia-cs-'
- PCMCIA_CS_VER="${PCMCIA_CS_VER/.ebuild/}" ## strip '.ebuild'
- if [ "${PCMCIA_CS_VER/-*/}" = "3.2.7" ]; then
- PCMCIA_VERSION=${PCMCIA_CS_VER}
- einfo "Using pcmcia-cs-3.2.7"
- epatch ${DISTDIR}/${PATCH_3_2_7}
- elif [ "${PCMCIA_CS_VER/-*/}" = "3.2.6" ]; then
- PCMCIA_VERSION=${PCMCIA_CS_VER}
- einfo "Using pcmcia-cs-3.2.6"
- epatch ${DISTDIR}/${PATCH_3_2_6}
- else
- PCMCIA_VERSION="${PCMCIA_BASE_VERSION}"
- einfo "Using ${PCMCIA_BASE_VERSION}"
- fi
- fi
- fi
- cd ${S}
-}
-
-# Call this if you need the package configured for building to work
-pcmcia_configure()
-{
- if use pcmcia ; then
- if ! egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null
- then
- cd ${PCMCIA_SOURCE_DIR}
- local myarch
-
- # pcmcia-cs expects "i386" not "x86"
- case "${ARCH}" in
- x86) myarch="i386" ;;
- *) myarch="${ARCH}" ;;
- esac
-
- #use $CFLAGS for user tools, but standard kernel optimizations for
- #the kernel modules (for compatibility)
- ./Configure -n \
- --target=${D} \
- --srctree \
- --kernel=/usr/src/linux \
- --kflags="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer" \
- --arch="${myarch}" \
- --uflags="${CFLAGS}" || die "failed configuring pcmcia-cs"
- fi
- fi
- cd ${S}
-}
-
-EXPORT_FUNCTIONS src_unpack
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/perl-post.eclass b/eclass/perl-post.eclass
deleted file mode 100644
index 7eb66c067226..000000000000
--- a/eclass/perl-post.eclass
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-post.eclass,v 1.16 2004/06/25 00:39:48 vapier Exp $
-#
-# Author: Seemant Kulleen <seemant@gentoo.org>
-# Maintained by the Perl herd <perl@gentoo.org>
-#
-# The perl-module eclass is designed to allow easier installation of perl
-# modules, and their incorporation into the Gentoo Linux system.
-
-inherit perl-module
diff --git a/eclass/php-2.eclass b/eclass/php-2.eclass
deleted file mode 100644
index b4d1cf658e90..000000000000
--- a/eclass/php-2.eclass
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-2.eclass,v 1.22 2006/02/28 04:30:00 robbat2 Exp $
-
-# STOP USING THIS ECLASS
-# PLEASE TRANSITION TO PHP-$PV-SAPI.ECLASS
-ewarn "Please upgrade your package (${PF}) to use PHP-*-sapi*.eclass"
diff --git a/eclass/php-ext-base.eclass b/eclass/php-ext-base.eclass
deleted file mode 100644
index af3cdcc0bf7f..000000000000
--- a/eclass/php-ext-base.eclass
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base.eclass,v 1.22 2008/01/06 19:30:24 swegener Exp $
-#
-# Author: Tal Peer <coredumb@gentoo.org>
-# Author: Stuart Herbert <stuart@gentoo.org>
-#
-# The php-ext-base eclass provides a unified interface for adding standalone
-# PHP extensions ('modules') to the php.ini files on your system.
-#
-# Combined with php-ext-source, we have a standardised solution for supporting
-# PHP extensions
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php-ext-base-r1.eclass instead!
-
-inherit php-ext-base-r1
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php-ext-base-r1.eclass!"
-}
-
-php-ext-base_buildinilist () {
- deprecation_warning
- php-ext-base-r1_buildinilist
-}
-
-php-ext-base_src_install() {
- deprecation_warning
- php-ext-base-r1_src_install
-}
-
-php-ext-base_addextension () {
- deprecation_warning
- php-ext-base-r1_addextension
-}
-
-php-ext-base_addtoinifile () {
- deprecation_warning
- php-ext-base-r1_addtoinifile
-}
-
-php-ext-base_addtoinifiles () {
- deprecation_warning
- php-ext-base-r1_addtoinifiles
-}
diff --git a/eclass/php-ext-pecl.eclass b/eclass/php-ext-pecl.eclass
deleted file mode 100644
index 18a66a5b55d6..000000000000
--- a/eclass/php-ext-pecl.eclass
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl.eclass,v 1.7 2008/01/06 19:30:24 swegener Exp $
-#
-# Author: Tal Peer <coredumb@gentoo.org>
-#
-# This eclass should be used by all dev-php/PECL-* ebuilds, as a uniform way of installing PECL extensions.
-# For more information about PECL, see: http://pecl.php.net
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php-ext-pecl-r1.eclass instead!
-
-inherit php-ext-pecl-r1
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php-ext-pecl-r1.eclass!"
-}
-
-php-ext-pecl_src_compile() {
- deprecation_warning
- php-ext-pecl-r1_src_compile
-}
-
-php-ext-pecl_src_install() {
- deprecation_warning
- php-ext-pecl-r1_src_install
-}
diff --git a/eclass/php-ext-source.eclass b/eclass/php-ext-source.eclass
deleted file mode 100644
index dab144c148fb..000000000000
--- a/eclass/php-ext-source.eclass
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source.eclass,v 1.13 2008/01/06 19:30:24 swegener Exp $
-#
-# Author: Tal Peer <coredumb@gentoo.org>
-# Author: Stuart Herbert <stuart@gentoo.org>
-#
-# The php-ext-source eclass provides a unified interface for compiling and
-# installing standalone PHP extensions ('modules') from source code
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php-ext-source-r1.eclass instead!
-
-inherit php-ext-source-r1
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php-ext-source-r1.eclass!"
-}
-
-
-php-ext-source_src_compile() {
- deprecation_warning
- php-ext-source-r1_src_compile
-}
-
-php-ext-source_src_install() {
- deprecation_warning
- php-ext-source-r1_src_install
-}
diff --git a/eclass/php-ext.eclass b/eclass/php-ext.eclass
deleted file mode 100644
index 7bd8462197de..000000000000
--- a/eclass/php-ext.eclass
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext.eclass,v 1.13 2008/01/06 19:30:24 swegener Exp $
-#
-# Author: Tal Peer <coredumb@gentoo.org>
-#
-# The php-ext eclass provides a unified interface for compiling and
-# installing standalone PHP extensions ('modules').
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php-ext-source-r1.eclass instead!
-
-inherit php-ext-source-r1 php-ext-base-r1
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php-ext-source-r1.eclass!"
-}
-
-php-ext_buildinilist () {
- deprecation_warning
- php-ext-base-r1_buildinilist
-}
-
-php-ext_src_compile() {
- deprecation_warning
- php-ext-source-r1_src_compile
-}
-
-php-ext_src_install() {
- deprecation_warning
- php-ext-source-r1_src_install
-}
-
-php-ext_pkg_postinst() {
- deprecation_warning
-}
-
-php-ext_addextensiontoinifile () {
- deprecation_warning
- php-ext-base-r1_addtoinifiles
-}
-
-php-ext_addextension () {
- deprecation_warning
- php-ext-base-r1_addextension
-}
-
-php-ext_addtoinifile () {
- deprecation_warning
- php-ext-base-r1_addtoinifile
-}
-
-php-ext_addtoinifiles () {
- deprecation_warning
- php-ext-base-r1_addtoinifiles
-}
diff --git a/eclass/php-lib.eclass b/eclass/php-lib.eclass
deleted file mode 100644
index 5cbc05de7c6a..000000000000
--- a/eclass/php-lib.eclass
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-lib.eclass,v 1.7 2008/01/06 19:30:24 swegener Exp $
-#
-# Author: Stuart Herbert <stuart@gentoo.org>
-#
-# The php-lib eclass provides a unified interface for adding new
-# PHP libraries. PHP libraries are PHP scripts designed for reuse inside
-# other PHP scripts.
-#
-# This eclass doesn't do a lot (yet)
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php-lib-r1.eclass instead!
-
-inherit php-lib-r1
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php-lib-r1.eclass!"
-}
-
-php-lib_src_install() {
- deprecation_warning
- php-lib-r1_src_install
-}
diff --git a/eclass/php-sapi.eclass b/eclass/php-sapi.eclass
deleted file mode 100644
index 156ed3bedcc4..000000000000
--- a/eclass/php-sapi.eclass
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.94 2008/01/06 19:30:24 swegener Exp $
-# Author: Robin H. Johnson <robbat2@gentoo.org>
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use one of the php?_?-sapi eclasses instead!
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use one of the php?_?-sapi eclasses instead!"
-}
-
-php-sapi_check_java_config() {
- deprecation_warning
-}
-
-php-sapi_src_unpack() {
- deprecation_warning
-}
-
-php-sapi_src_compile() {
- deprecation_warning
-}
-
-php-sapi_src_install() {
- deprecation_warning
-}
-
-php-sapi_pkg_preinst() {
- deprecation_warning
-}
-
-php-sapi_pkg_postinst() {
- deprecation_warning
-}
-
-php-sapi_securityupgrade() {
- deprecation_warning
-}
-
-php-sapi_warning_mssql_freetds() {
- deprecation_warning
-}
diff --git a/eclass/php.eclass b/eclass/php.eclass
deleted file mode 100644
index 8632bdc7ecf7..000000000000
--- a/eclass/php.eclass
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.106 2006/02/28 04:30:00 robbat2 Exp $
-
-# STOP USING THIS ECLASS
-# PLEASE TRANSITION TO PHP-$PV-SAPI.ECLASS
-ewarn "Please upgrade your package (${PF}) to use PHP-*-sapi*.eclass"
diff --git a/eclass/php4_4-sapi.eclass b/eclass/php4_4-sapi.eclass
index 14a7d61bca6d..747f60db1810 100644
--- a/eclass/php4_4-sapi.eclass
+++ b/eclass/php4_4-sapi.eclass
@@ -1,685 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php4_4-sapi.eclass,v 1.44 2008/07/07 19:12:30 hoffie Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php4_4-sapi.eclass,v 1.45 2009/11/30 04:19:36 abcd Exp $
-# ========================================================================
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author: Stuart Herbert <stuart@gentoo.org>
-# Author: Luca Longinotti <chtekk@gentoo.org>
-#
-# ========================================================================
-
-# @ECLASS: php4_4-sapi.eclass
-# @MAINTAINER:
-# Gentoo PHP team <php-bugs@gentoo.org>
-# @BLURB: Eclass for building different php4 SAPI instances.
-# @DESCRIPTION:
-# Eclass for building different php4 SAPI instances. Use it for the new-style
-# =dev-lang/php-4* ebuilds.
-
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob frontbase hyperwave-api informix interbase mnogosearch msql oci8 oracle7 pfpro sapdb solid sybase sybase-ct"
-
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
-
-inherit flag-o-matic autotools toolchain-funcs libtool eutils phpconfutils php-common-r1
-
-# @ECLASS-VARIABLE: MY_PHP_P
-# @DESCRIPTION:
-# Set MY_PHP_P in the ebuild as needed to match tarball version.
-
-# @ECLASS-VARIABLE: PHP_PACKAGE
-# @DESCRIPTION:
-# We only set this variable if we are building a copy of php which can be
-# installed as a package in its own.
-# Copies of php which are compiled into other packages (e.g. php support
-# for the thttpd web server) don't need this variable.
-if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- HOMEPAGE="http://www.php.net/"
- LICENSE="PHP-3"
- SRC_URI="http://www.php.net/distributions/${MY_PHP_P}.tar.bz2"
- S="${WORKDIR}/${MY_PHP_P}"
-fi
-
-IUSE="adabas bcmath berkdb birdstep bzip2 calendar cdb cjk crypt ctype curl db2 dbase dbmaker dbx debug doc empress empress-bcs esoob exif expat frontbase fdftk filepro firebird flatfile ftp gd gd-external gdbm gmp hyperwave-api iconv imap informix inifile interbase iodbc ipv6 java-internal java-external kerberos ldap libedit mcal mcve memlimit mhash ming mnogosearch msql mssql mysql ncurses nls oci8 oci8-instant-client odbc oracle7 overload pcntl pcre pfpro pic posix postgres readline recode sapdb session sharedext sharedmem snmp sockets solid spell sqlite ssl suhosin sybase sybase-ct sysvipc tokenizer truetype unicode wddx xml xmlrpc xpm xsl yaz zip zlib"
-
-# these USE flags should have the correct dependencies
-DEPEND="adabas? ( >=dev-db/unixODBC-1.8.13 )
- berkdb? ( =sys-libs/db-4* )
- birdstep? ( >=dev-db/unixODBC-1.8.13 )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? ( !gd-external? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- db2? ( >=dev-db/unixODBC-1.8.13 )
- dbmaker? ( >=dev-db/unixODBC-1.8.13 )
- empress? ( >=dev-db/unixODBC-1.8.13 )
- empress-bcs? ( >=dev-db/unixODBC-1.8.13 )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib )
- gd-external? ( media-libs/gd )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client )
- iodbc? ( dev-db/libiodbc >=dev-db/unixODBC-1.8.13 )
- java-internal? ( >=virtual/jdk-1.4.2 dev-java/java-config )
- kerberos? ( virtual/krb5 )
- ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mcal? ( >=dev-libs/libmcal-0.7-r5 )
- mcve? ( net-libs/libmonetra >=dev-libs/openssl-0.9.7 )
- mhash? ( app-crypt/mhash )
- ming? ( media-libs/ming )
- mssql? ( dev-db/freetds )
- mysql? ( virtual/mysql )
- ncurses? ( sys-libs/ncurses )
- nls? ( sys-devel/gettext )
- oci8-instant-client? ( dev-db/oracle-instantclient-basic )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- postgres? ( || ( >=dev-db/libpq-7.1 ( app-admin/eselect-postgresql
- >=dev-db/postgresql-base-7.1 ) ) )
- readline? ( sys-libs/readline )
- recode? ( app-text/recode )
- sapdb? ( >=dev-db/unixODBC-1.8.13 )
- sharedmem? ( dev-libs/mm )
- snmp? ( >=net-analyzer/net-snmp-5.2 )
- solid? ( >=dev-db/unixODBC-1.8.13 )
- spell? ( >=app-text/aspell-0.50 )
- ssl? ( >=dev-libs/openssl-0.9.7 )
- sybase? ( dev-db/freetds )
- truetype? ( =media-libs/freetype-2* >=media-libs/t1lib-5.0.0 !gd? ( !gd-external? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) ) )
- xml? ( dev-libs/libxml2 sys-libs/zlib xsl? ( dev-libs/libxslt ) )
- xmlrpc? ( dev-libs/expat virtual/libiconv )
- xpm? ( x11-libs/libXpm >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib )
- xsl? ( app-text/sablotron dev-libs/expat virtual/libiconv )
- zlib? ( sys-libs/zlib )
- virtual/mta"
-
-# libswf conflicts with ming and should not
-# be installed with the new PHP ebuilds
-DEPEND="${DEPEND}
- !media-libs/libswf"
-
-# 9libs causes a configure error
-DEPEND="${DEPEND}
- !dev-libs/9libs"
-
-# simplistic for now
-RDEPEND="${DEPEND}"
-
-# those are only needed at compile-time
-DEPEND="${DEPEND}
- >=sys-devel/m4-1.4.3
- >=sys-devel/libtool-1.5.18"
-
-# Additional features
-#
-# They are in PDEPEND because we need PHP installed first!
-PDEPEND="doc? ( app-doc/php-docs )
- java-external? ( dev-php4/php-java-bridge )
- java-internal? ( !dev-php4/php-java-bridge )
- sqlite? ( dev-php4/pecl-sqlite )
- suhosin? ( dev-php4/suhosin )
- yaz? ( dev-php4/pecl-yaz )
- zip? ( dev-php4/pecl-zip )"
-
-
-# ========================================================================
-# php.ini Support
-# ========================================================================
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-dist"
-
-# ========================================================================
-
-# @ECLASS-VARIABLE: PHP_PATCHSET_REV
-# @DESCRIPTION:
-# Provides PHP patchsets support.
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# @ECLASS-VARIABLE: SUHOSIN_PATCH
-# @DESCRIPTION:
-# Tarball name for Suhosin patch (see http://www.suhosin.org/).
-# This feature will not be available in php if unset.
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-# ========================================================================
-
-EXPORT_FUNCTIONS pkg_setup src_compile src_install src_unpack pkg_postinst
-
-# ========================================================================
-# INTERNAL FUNCTIONS
-# ========================================================================
-
-php4_4-sapi_check_use_flags() {
- # Multiple USE dependencies
- phpconfutils_use_depend_any "truetype" "gd" "gd" "gd-external"
- phpconfutils_use_depend_any "cjk" "gd" "gd" "gd-external"
- phpconfutils_use_depend_any "exif" "gd" "gd" "gd-external"
-
- # Simple USE dependencies
- phpconfutils_use_depend_all "xpm" "gd"
- phpconfutils_use_depend_all "gd" "zlib"
- phpconfutils_use_depend_all "xml" "zlib"
- phpconfutils_use_depend_all "xmlrpc" "iconv"
- phpconfutils_use_depend_all "xsl" "iconv"
- phpconfutils_use_depend_all "java-external" "session"
- phpconfutils_use_depend_all "mcve" "ssl"
- phpconfutils_use_depend_all "suhosin" "unicode"
- phpconfutils_use_depend_all "adabas" "odbc"
- phpconfutils_use_depend_all "birdstep" "odbc"
- phpconfutils_use_depend_all "dbmaker" "odbc"
- phpconfutils_use_depend_all "empress-bcs" "odbc" "empress"
- phpconfutils_use_depend_all "empress" "odbc"
- phpconfutils_use_depend_all "esoob" "odbc"
- phpconfutils_use_depend_all "db2" "odbc"
- phpconfutils_use_depend_all "iodbc" "odbc"
- phpconfutils_use_depend_all "sapdb" "odbc"
- phpconfutils_use_depend_all "solid" "odbc"
-
- # Direct USE conflicts
- phpconfutils_use_conflict "gd" "gd-external"
- phpconfutils_use_conflict "java-external" "java-internal"
- phpconfutils_use_conflict "oci8" "oci8-instant-client"
- phpconfutils_use_conflict "readline" "libedit"
- phpconfutils_use_conflict "recode" "mysql" "imap" "yaz"
- phpconfutils_use_conflict "sharedmem" "threads"
- phpconfutils_use_conflict "firebird" "interbase"
-
- # IMAP support
- php_check_imap
-
- # Mail support
- php_check_mta
-
- # Java support
- php_check_java
-
- # PostgreSQL support
- php_check_pgsql
-
- # Oracle support
- php_check_oracle_all
-
- phpconfutils_warn_about_external_deps
-
- export PHPCONFUTILS_AUTO_USE="${PHPCONFUTILS_AUTO_USE}"
-}
-
-php4_4-sapi_set_php_ini_dir() {
- PHP_INI_DIR="/etc/php/${PHPSAPI}-php4"
- PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
- PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
-}
-
-php4_4-sapi_install_ini() {
- destdir=/usr/$(get_libdir)/php4
-
- # get the extension dir, if not already defined
- [[ -z "${PHPEXTDIR}" ]] && PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`"
-
- # work out where we are installing the ini file
- php4_4-sapi_set_php_ini_dir
-
- cp "${PHP_INI_UPSTREAM}" "${PHP_INI_UPSTREAM}-${PHPSAPI}"
- local phpinisrc="${PHP_INI_UPSTREAM}-${PHPSAPI}"
-
- # Set the extension dir
- einfo "Setting extension_dir in php.ini"
- sed -e "s|^extension_dir .*$|extension_dir = ${PHPEXTDIR}|g" -i ${phpinisrc}
-
- # A patch for PHP for security
- einfo "Securing fopen wrappers"
- sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i ${phpinisrc}
-
- # Set the include path to point to where we want to find PEAR packages
- einfo "Setting correct include_path"
- sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php4:/usr/share/php"|' -i ${phpinisrc}
-
- # Add needed MySQL extension charset configuration
- local phpmycnfcharset=""
-
- if [[ "${PHPSAPI}" == "cli" ]] ; then
- phpmycnfcharset="`php_get_mycnf_charset cli`"
- einfo "MySQL extension charset for 'cli' SAPI is: ${phpmycnfcharset}"
- elif [[ "${PHPSAPI}" == "cgi" ]] ; then
- phpmycnfcharset="`php_get_mycnf_charset cgi-fcgi`"
- einfo "MySQL extension charset for 'cgi' SAPI is: ${phpmycnfcharset}"
- elif [[ "${PHPSAPI}" == "apache2" ]] ; then
- phpmycnfcharset="`php_get_mycnf_charset apache2handler`"
- einfo "MySQL extension charset for 'apache2' SAPI is: ${phpmycnfcharset}"
- else
- einfo "No supported SAPI found for which to get the MySQL charset."
- fi
-
- if [[ -n "${phpmycnfcharset}" ]] && [[ "${phpmycnfcharset}" != "empty" ]] ; then
- einfo "Setting MySQL extension charset to ${phpmycnfcharset}"
- echo "" >> ${phpinisrc}
- echo "; MySQL extension default connection charset settings" >> ${phpinisrc}
- echo "mysql.connect_charset = ${phpmycnfcharset}" >> ${phpinisrc}
- else
- echo "" >> ${phpinisrc}
- echo "; MySQL extension default connection charset settings" >> ${phpinisrc}
- echo ";mysql.connect_charset = utf8" >> ${phpinisrc}
- fi
-
- dodir ${PHP_INI_DIR}
- insinto ${PHP_INI_DIR}
- newins ${phpinisrc} ${PHP_INI_FILE}
-
- dodir ${PHP_EXT_INI_DIR}
- dodir ${PHP_EXT_INI_DIR_ACTIVE}
-
- # Java needs to insert the correct ini files
- php_install_java_inifile
-
- # Install any extensions built as shared objects
- if use sharedext ; then
- for x in `ls "${D}/${PHPEXTDIR}/"*.so | sort | sed -e "s|.*java.*||g"` ; do
- inifilename=${x/.so/.ini}
- inifilename=`basename ${inifilename}`
- echo "extension=`basename ${x}`" >> "${D}/${PHP_EXT_INI_DIR}/${inifilename}"
- dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}"
- done
- fi
-}
-
-# ========================================================================
-# EXPORTED FUNCTIONS
-# ========================================================================
-
-# @FUNCTION: php4_4-sapi_pkg_setup
-# @DESCRIPTION:
-# Performs all the USE flag testing and magic before we do anything else.
-# This way saves a lot of time.
-php4_4-sapi_pkg_setup() {
- php4_4-sapi_check_use_flags
-}
-
-# @FUNCTION: php4_4-sapi_src_unpack
-# @DESCRIPTION:
-# Takes care of unpacking, patching and autotools magic and disables
-# interactive tests.
-
-# @VARIABLE: PHP_EXTRA_BRANDING
-# @DESCRIPTION:
-# This variable allows an ebuild to add additional information like
-# snapshot dates to the version line.
-php4_4-sapi_src_unpack() {
- cd "${S}"
-
- [[ -z "${PHP_EXTRA_BRANDING}" ]] && PHP_EXTRA_BRANDING=""
-
- # Change PHP branding
- PHPPR=${PR/r/}
- sed -e "s|^EXTRA_VERSION=\".*\"|EXTRA_VERSION=\"${PHP_EXTRA_BRANDING}-pl${PHPPR}-gentoo\"|g" -i configure.in || die "Unable to change PHP branding to ${PHP_EXTRA_BRANDING}-pl${PHPPR}-gentoo"
-
- # multilib-strict support
- if [[ -n "${MULTILIB_PATCH}" ]] && [[ -f "${WORKDIR}/${MULTILIB_PATCH}" ]] ; then
- epatch "${WORKDIR}/${MULTILIB_PATCH}"
- else
- ewarn "There is no multilib-strict patch available for this PHP release yet!"
- fi
-
- # Apply general PHP4 patches
- if [[ -d "${WORKDIR}/${MY_PHP_PV}/php4" ]] ; then
- EPATCH_SOURCE="${WORKDIR}/${MY_PHP_PV}/php4" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
- fi
-
- # Apply version-specific PHP patches
- if [[ -d "${WORKDIR}/${MY_PHP_PV}/${MY_PHP_PV}" ]] ; then
- EPATCH_SOURCE="${WORKDIR}/${MY_PHP_PV}/${MY_PHP_PV}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
- fi
-
- # Patch PHP to show Gentoo as the server platform
- sed -e "s/PHP_UNAME=\`uname -a | xargs\`/PHP_UNAME=\`uname -s -n -r -v | xargs\`/g" -i configure.in || die "Failed to fix server platform name"
-
- # Disable interactive make test
- sed -e 's/'`echo "\!getenv('NO_INTERACTION')"`'/false/g' -i run-tests.php
-
- # Stop PHP from activating the Apache config, as we will do that ourselves
- for i in configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 ; do
- sed -i.orig -e 's,-i -a -n php,-i -n php,g' ${i}
- sed -i.orig -e 's,-i -A -n php,-i -n php,g' ${i}
- done
-
- # Patch PHP to support heimdal instead of mit-krb5
- if has_version "app-crypt/heimdal" ; then
- sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 || die "Failed to fix heimdal libname"
- sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 || die "Failed to fix heimdal crypt library reference"
- fi
-
- # Patch for PostgreSQL support
- if use postgres ; then
- sed -e 's|include/postgresql|include/postgresql include/postgresql/pgsql|g' -i ext/pgsql/config.m4 || die "Failed to fix PostgreSQL include paths"
- fi
-
- # Suhosin support
- if use suhosin ; then
- if [[ -n "${SUHOSIN_PATCH}" ]] && [[ -f "${DISTDIR}/${SUHOSIN_PATCH}" ]] ; then
- epatch "${DISTDIR}/${SUHOSIN_PATCH}"
- else
- ewarn "There is no Suhosin patch available for this PHP release yet!"
- fi
- fi
-
- # We are heavily patching autotools base files (configure.in) because
- # of suhosin etc., so let's regenerate the whole stuff now
-
- # eaclocal doesn't accept --force, so we try to force re-generation
- # this way
- rm aclocal.m4
- eautoreconf --force -W no-cross
-}
-
-# @FUNCTION: php4_4-sapi_src_compile
-# @DESCRIPTION:
-# Takes care of compiling php according to USE flags set by user (and those automagically
-# enabled via phpconfutils eclass if unavoidable).
-php4_4-sapi_src_compile() {
- destdir=/usr/$(get_libdir)/php4
-
- php4_4-sapi_set_php_ini_dir
-
- cd "${S}"
-
- phpconfutils_init
-
- my_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE} --without-pear"
-
- # extension USE flag shared support?
- phpconfutils_extension_enable "bcmath" "bcmath" 1
- phpconfutils_extension_with "bz2" "bzip2" 1
- phpconfutils_extension_enable "calendar" "calendar" 1
- phpconfutils_extension_disable "ctype" "ctype" 0
- phpconfutils_extension_with "curl" "curl" 1
- phpconfutils_extension_enable "dbase" "dbase" 1
- phpconfutils_extension_with "dom" "xml" 0
- phpconfutils_extension_enable "exif" "exif" 1
- phpconfutils_extension_with "fbsql" "frontbase" 1
- phpconfutils_extension_with "fdftk" "fdftk" 1 "/opt/fdftk-6.0"
- phpconfutils_extension_enable "filepro" "filepro" 1
- phpconfutils_extension_enable "ftp" "ftp" 1
- phpconfutils_extension_with "gettext" "nls" 1
- phpconfutils_extension_with "gmp" "gmp" 1
- phpconfutils_extension_with "hwapi" "hyperwave-api" 1
- phpconfutils_extension_with "iconv" "iconv" 0
- phpconfutils_extension_with "informix" "informix" 1
- phpconfutils_extension_disable "ipv6" "ipv6" 0
- phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr"
- phpconfutils_extension_enable "mbstring" "unicode" 1
- phpconfutils_extension_with "mcal" "mcal" 1 "/usr"
- phpconfutils_extension_with "mcrypt" "crypt" 1
- phpconfutils_extension_with "mcve" "mcve" 1
- phpconfutils_extension_enable "memory-limit" "memlimit" 0
- phpconfutils_extension_with "mhash" "mhash" 1
- phpconfutils_extension_with "ming" "ming" 1
- phpconfutils_extension_with "mnogosearch" "mnogosearch" 1
- phpconfutils_extension_with "msql" "msql" 1
- phpconfutils_extension_with "mssql" "mssql" 1
- phpconfutils_extension_with "ncurses" "ncurses" 1
- phpconfutils_extension_with "oci8" "oci8" 1
- phpconfutils_extension_with "oci8-instant-client" "oci8-instant-client" 1
- phpconfutils_extension_with "oracle" "oracle7" 1
- phpconfutils_extension_with "openssl" "ssl" 0
- phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr"
- phpconfutils_extension_disable "overload" "overload" 0
- phpconfutils_extension_enable "pcntl" "pcntl" 1
- phpconfutils_extension_without "pcre-regex" "pcre" 0
- phpconfutils_extension_with "pfpro" "pfpro" 1
- phpconfutils_extension_with "pgsql" "postgres" 1
- phpconfutils_extension_disable "posix" "posix" 0
- phpconfutils_extension_with "pspell" "spell" 1
- phpconfutils_extension_with "recode" "recode" 1
- phpconfutils_extension_enable "shmop" "sharedmem" 0
- phpconfutils_extension_with "snmp" "snmp" 1
- phpconfutils_extension_enable "sockets" "sockets" 1
- phpconfutils_extension_with "sybase" "sybase" 1
- phpconfutils_extension_with "sybase-ct" "sybase-ct" 1
- phpconfutils_extension_enable "sysvmsg" "sysvipc" 1
- phpconfutils_extension_enable "sysvsem" "sysvipc" 1
- phpconfutils_extension_enable "sysvshm" "sysvipc" 1
- phpconfutils_extension_disable "tokenizer" "tokenizer" 0
- phpconfutils_extension_enable "wddx" "wddx" 1
- phpconfutils_extension_disable "xml" "expat" 0
- phpconfutils_extension_with "xmlrpc" "xmlrpc" 1
- phpconfutils_extension_with "zlib" "zlib" 1
- phpconfutils_extension_enable "debug" "debug" 0
-
- # DBA support
- if use cdb || use berkdb || use flatfile || use gdbm || use inifile ; then
- my_conf="${my_conf} --enable-dba${shared}"
- fi
-
- # DBA drivers support
- phpconfutils_extension_with "cdb" "cdb" 0
- phpconfutils_extension_with "db4" "berkdb" 0
- phpconfutils_extension_with "flatfile" "flatfile" 0
- phpconfutils_extension_with "gdbm" "gdbm" 0
- phpconfutils_extension_with "inifile" "inifile" 0
-
- # DBX support
- phpconfutils_extension_enable "dbx" "dbx" 1
-
- # Support for the GD graphics library
- if use gd-external || phpconfutils_usecheck gd-external ; then
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "gd" "gd-external" 1 "/usr"
- else
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "png-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr/X11R6"
- # enable gd last, so configure can pick up the previous settings
- phpconfutils_extension_with "gd" "gd" 0
- fi
-
- # Java support
- if use java-internal || phpconfutils_usecheck java-internal ; then
- phpconfutils_extension_with "java" "java-internal" 0 "`java-config --jdk-home`"
- fi
-
- # IMAP support
- if use imap || phpconfutils_usecheck imap ; then
- phpconfutils_extension_with "imap" "imap" 1
- phpconfutils_extension_with "imap-ssl" "ssl" 0
- fi
-
- # Interbase support
- if use interbase ; then
- my_conf="${my_conf} --with-interbase=/opt"
- fi
-
- # Firebird support - see Bug 186791
- if use firebird ; then
- my_conf="${my_conf} --with-interbase=/usr"
- fi
-
- # LDAP support
- if use ldap || phpconfutils_usecheck ldap ; then
- if use oci8 ; then
- phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}"
- else
- phpconfutils_extension_with "ldap" "ldap" 1
- fi
- fi
-
- # MySQL support
- # In PHP4, MySQL is enabled by default, so if no 'mysql' USE flag is set,
- # we must turn it off explicitely
- if use mysql ; then
- phpconfutils_extension_with "mysql" "mysql" 1 "/usr"
- phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock"
- else
- phpconfutils_extension_without "mysql" "mysql" 0
- fi
-
- # ODBC support
- if use odbc || phpconfutils_usecheck odbc ; then
- phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr"
-
- phpconfutils_extension_with "adabas" "adabas" 1
- phpconfutils_extension_with "birdstep" "birdstep" 1
- phpconfutils_extension_with "dbmaker" "dbmaker" 1
- phpconfutils_extension_with "empress" "empress" 1
- if use empress || phpconfutils_usecheck empress ; then
- phpconfutils_extension_with "empress-bcs" "empress-bcs" 0
- fi
- phpconfutils_extension_with "esoob" "esoob" 1
- phpconfutils_extension_with "ibm-db2" "db2" 1
- phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr"
- phpconfutils_extension_with "sapdb" "sapdb" 1
- phpconfutils_extension_with "solid" "solid" 1
- fi
-
- # readline/libedit support
- # You can use readline or libedit, but you can't use both
- phpconfutils_extension_with "readline" "readline" 0
- phpconfutils_extension_with "libedit" "libedit" 0
-
- # Sablotron/XSLT support
- phpconfutils_extension_enable "xslt" "xsl" 1
- phpconfutils_extension_with "xslt-sablot" "xsl" 1
- if use xml || phpconfutils_usecheck xml ; then
- phpconfutils_extension_with "dom-xslt" "xsl" 0 "/usr"
- phpconfutils_extension_with "dom-exslt" "xsl" 0 "/usr"
- fi
-
- # Session support
- if ! use session && ! phpconfutils_usecheck session ; then
- phpconfutils_extension_disable "session" "session" 0
- else
- phpconfutils_extension_with "mm" "sharedmem" 0
- fi
-
- # Fix ELF-related problems
- if use pic || phpconfutils_usecheck pic ; then
- einfo "Enabling PIC support"
- my_conf="${my_conf} --with-pic"
- fi
-
- # Catch CFLAGS problems
- php_check_cflags
-
- # multilib support
- if [[ $(get_libdir) != lib ]] ; then
- my_conf="--with-libdir=$(get_libdir) ${my_conf}"
- fi
-
- # Support user-passed configuration parameters
- [[ -z "${EXTRA_ECONF}" ]] && EXTRA_ECONF=""
-
- # Set the correct compiler for cross-compilation
- tc-export CC
-
- # We don't use econf, because we need to override all of its settings
- ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed"
- emake || die "make failed"
-}
-
-# @FUNCTION: php4_4-sapi_src_install
-# @DESCRIPTION:
-# Takes care of installing php (and its shared extensions if enabled).
-php4_4-sapi_src_install() {
- destdir=/usr/$(get_libdir)/php4
-
- cd "${S}"
-
- addpredict /usr/share/snmp/mibs/.index
-
- # Install PHP
- make INSTALL_ROOT="${D}" install-build install-headers install-programs || die "make install failed"
-
- # Install missing header files
- if use unicode || phpconfutils_usecheck unicode ; then
- dodir ${destdir}/include/php/ext/mbstring
- insinto ${destdir}/include/php/ext/mbstring
- doins ext/mbstring/mbregex/mbregex.h
- fi
-
- # Get the extension dir, if not already defined
- [[ -z "${PHPEXTDIR}" ]] && PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`"
-
- # And install the modules to it
- if use sharedext ; then
- for x in `ls "${S}/modules/"*.so | sort | sed -e "s|.*java.*||g"` ; do
- module=`basename ${x}`
- modulename=${module/.so/}
- insinto "${PHPEXTDIR}"
- einfo "Installing PHP ${modulename} extension"
- doins "modules/${module}"
- done
- fi
-
- # Java module and support needs to be installed
- php_install_java
-
- # Generate the USE file for PHP
- phpconfutils_generate_usefile
-
- # Create the directory where we'll put php4-only php scripts
- keepdir /usr/share/php4
-}
-
-# @FUNCTION: php4_4-sapi_pkg_postinst
-# @DESCRIPTION:
-# Provides important information to users after install is finished.
-php4_4-sapi_pkg_postinst() {
- ewarn
- ewarn "If you have additional third party PHP extensions (such as"
- ewarn "dev-php4/phpdbg) you may need to recompile them now."
- ewarn "A new way of enabling/disabling PHP extensions was introduced"
- ewarn "with the newer PHP packages releases, so please reemerge any"
- ewarn "PHP extensions you have installed to automatically adapt to"
- ewarn "the new configuration layout."
- if use sharedext ; then
- ewarn "The core PHP extensions are now loaded through external"
- ewarn ".ini files, not anymore using a 'extension=name.so' line"
- ewarn "in the php.ini file. Portage will take care of this by"
- ewarn "creating new, updated config-files, please make sure to"
- ewarn "install those using etc-update or dispatch-conf."
- fi
- ewarn
-
- if use curl ; then
- ewarn "Please be aware that CURL can allow the bypass of open_basedir restrictions."
- ewarn "This can be a security risk!"
- ewarn
- fi
-
- ewarn "The 'pic' USE flag was added to newer releases of dev-lang/php."
- ewarn "With PIC enabled, your PHP installation may become slower, but"
- ewarn "PIC is required on Hardened-Gentoo platforms (where the USE flag"
- ewarn "is enabled automatically). You may also need this on other"
- ewarn "configurations where TEXTRELs are disabled, for example when using"
- ewarn "certain PaX options in the kernel."
- ewarn
-
- ewarn "The Ovrimos extension was recently removed and has no available"
- ewarn "substitute, our ebuilds reflect this."
- ewarn "The configure option --enable-gd-native-ttf (enabled by the"
- ewarn "'truetype' USE flag) was removed at upstreams request,"
- ewarn "as it's considered old and broken."
- ewarn "Hardened-PHP was also removed from the PHP 4.4 ebuilds in"
- ewarn "favour of its successor Suhosin, enable the 'suhosin' USE"
- ewarn "flag to install it."
- ewarn
-
- ewarn "The 'xml' and 'xml2' USE flags were unified in only the 'xml' USE"
- ewarn "flag. To get the features that were once controlled by the 'xml2'"
- ewarn "USE flag, turn the 'xml' USE flag on. To get the features that were"
- ewarn "once controlled by the 'xml' USE flag, turn the 'expat' USE flag on."
- ewarn
-}
+# @DEAD
+# To be removed on 2009/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/php5-sapi-r1.eclass b/eclass/php5-sapi-r1.eclass
deleted file mode 100644
index 19bb91d3691e..000000000000
--- a/eclass/php5-sapi-r1.eclass
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5-sapi-r1.eclass,v 1.26 2008/01/06 19:30:24 swegener Exp $
-#
-# eclass/php5-sapi-r1.eclass
-# Eclass for building different php5 SAPI instances
-#
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author(s) Stuart Herbert
-# <stuart@gentoo.org>
-#
-# ========================================================================
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php5_2-sapi eclass instead!
-
-inherit php5_2-sapi
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php5_2-sapi eclass instead!"
-}
-
-php5-sapi-r1_check_awkward_uses() {
- deprecation_warning
- php5_2-sapi_check_use_flags
-}
-
-php5-sapi-r1_pkg_setup() {
- deprecation_warning
- php5_2-sapi_pkg_setup
-}
-
-php5-sapi-r1_src_unpack() {
- deprecation_warning
- php5_2-sapi_src_unpack
-}
-
-php5-sapi-r1_src_compile() {
- deprecation_warning
- php5_2-sapi_src_compile
-}
-
-php5-sapi-r1_src_install() {
- deprecation_warning
- php5_2-sapi_src_install
-}
-
-php5-sapi-r1_pkg_postinst() {
- deprecation_warning
- php5_2-sapi_pkg_postinst
-}
diff --git a/eclass/php5-sapi-r2.eclass b/eclass/php5-sapi-r2.eclass
deleted file mode 100644
index c84687df1f4d..000000000000
--- a/eclass/php5-sapi-r2.eclass
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5-sapi-r2.eclass,v 1.45 2008/01/06 19:30:24 swegener Exp $
-#
-# eclass/php5-sapi-r2.eclass
-# Eclass for building different php5 SAPI instances
-#
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author(s) Stuart Herbert
-# <stuart@gentoo.org>
-#
-# ========================================================================
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php5_2-sapi eclass instead!
-
-inherit php5_2-sapi
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php5_2-sapi eclass instead!"
-}
-
-php5-sapi-r2_check_awkward_uses() {
- deprecation_warning
- php5_2-sapi_check_use_flags
-}
-
-php5-sapi-r2_pkg_setup() {
- deprecation_warning
- php5_2-sapi_pkg_setup
-}
-
-php5-sapi-r2_src_unpack() {
- deprecation_warning
- php5_2-sapi_src_unpack
-}
-
-php5-sapi-r2_src_compile() {
- deprecation_warning
- php5_2-sapi_src_compile
-}
-
-php5-sapi-r2_src_install() {
- deprecation_warning
- php5_2-sapi_src_install
-}
-
-php5-sapi-r2_pkg_postinst() {
- deprecation_warning
- php5_2-sapi_pkg_postinst
-}
diff --git a/eclass/php5-sapi-r3.eclass b/eclass/php5-sapi-r3.eclass
deleted file mode 100644
index 4842001b9ebf..000000000000
--- a/eclass/php5-sapi-r3.eclass
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5-sapi-r3.eclass,v 1.27 2008/01/06 19:30:24 swegener Exp $
-#
-# ########################################################################
-#
-# eclass/php5-sapi-r3.eclass
-# Eclass for building different php5 SAPI instances
-#
-# USE THIS ECLASS FOR PHP 5.1.x
-# USE php5-sapi-r2 FOR PHP 5.0.x
-#
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author(s) Stuart Herbert
-# <stuart@gentoo.org>
-#
-# ========================================================================
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php5_2-sapi eclass instead!
-
-inherit php5_2-sapi
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php5_2-sapi eclass instead!"
-}
-
-php5-sapi-r3_check_awkward_uses() {
- deprecation_warning
- php5_2-sapi_check_use_flags
-}
-
-php5-sapi-r3_pkg_setup() {
- deprecation_warning
- php5_2-sapi_pkg_setup
-}
-
-php5-sapi-r3_src_unpack() {
- deprecation_warning
- php5_2-sapi_src_unpack
-}
-
-php5-sapi-r3_src_compile() {
- deprecation_warning
- php5_2-sapi_src_compile
-}
-
-php5-sapi-r3_src_install() {
- deprecation_warning
- php5_2-sapi_src_install
-}
-
-php5-sapi-r3_pkg_postinst() {
- deprecation_warning
- php5_2-sapi_pkg_postinst
-}
diff --git a/eclass/php5-sapi.eclass b/eclass/php5-sapi.eclass
deleted file mode 100644
index 7661686d78a3..000000000000
--- a/eclass/php5-sapi.eclass
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5-sapi.eclass,v 1.60 2008/01/06 19:30:24 swegener Exp $
-#
-# eclass/php5-sapi.eclass
-# Eclass for building different php5 SAPI instances
-#
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author(s) Stuart Herbert
-# <stuart@gentoo.org>
-#
-# ========================================================================
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php5_2-sapi eclass instead!
-
-inherit php5_2-sapi
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php5_2-sapi eclass instead!"
-}
-
-php5-sapi_check_awkward_uses() {
- deprecation_warning
- php5_2-sapi_check_use_flags
-}
-
-php5-sapi_pkg_setup() {
- deprecation_warning
- php5_2-sapi_pkg_setup
-}
-
-php5-sapi_src_unpack() {
- deprecation_warning
- php5_2-sapi_src_unpack
-}
-
-php5-sapi_src_compile() {
- deprecation_warning
- php5_2-sapi_src_compile
-}
-
-php5-sapi_src_install() {
- deprecation_warning
- php5_2-sapi_src_install
-}
-
-php5-sapi_pkg_postinst() {
- deprecation_warning
- php5_2-sapi_pkg_postinst
-}
diff --git a/eclass/php5_0-sapi.eclass b/eclass/php5_0-sapi.eclass
index ed27ebe6ceec..a1510ea61c2f 100644
--- a/eclass/php5_0-sapi.eclass
+++ b/eclass/php5_0-sapi.eclass
@@ -1,68 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5_0-sapi.eclass,v 1.37 2007/12/24 12:29:36 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php5_0-sapi.eclass,v 1.38 2009/11/30 04:19:36 abcd Exp $
-# ========================================================================
-#
-# php5_0-sapi.eclass
-# Eclass for building different php5.0 SAPI instances
-#
-# USE THIS ECLASS FOR THE "CONCENTRATED" PACKAGES
-#
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author: Stuart Herbert
-# <stuart@gentoo.org>
-#
-# Author: Luca Longinotti
-# <chtekk@gentoo.org>
-#
-# ========================================================================
-
-# DEPRECATED!!!
-# STOP USING THIS ECLASS, use php5_2-sapi eclass instead!
-
-inherit php5_2-sapi
-
-deprecation_warning() {
- eerror "Please upgrade ${PF} to use php5_2-sapi eclass instead!"
-}
-
-php5_0-sapi_check_use_flags() {
- deprecation_warning
- php5_2-sapi_check_use_flags
-}
-
-php5_0-sapi_set_php_ini_dir() {
- deprecation_warning
- php5_2-sapi_set_php_ini_dir
-}
-
-php5_0-sapi_install_ini() {
- deprecation_warning
- php5_2-sapi_install_ini
-}
-
-php5_0-sapi_pkg_setup() {
- php5_0-sapi_check_use_flags
-}
-
-php5_0-sapi_src_unpack() {
- deprecation_warning
- php5_2-sapi_src_unpack
-}
-
-php5_0-sapi_src_compile() {
- deprecation_warning
- php5_2-sapi_src_compile
-}
-
-php5_0-sapi_src_install() {
- deprecation_warning
- php5_2-sapi_src_install
-}
-
-php5_0-sapi_pkg_postinst() {
- deprecation_warning
- php5_2-sapi_pkg_postinst
-}
+# @DEAD
+# To be removed 2009/12/24.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/php5_1-sapi.eclass b/eclass/php5_1-sapi.eclass
index f39631dec92f..fd0cca042717 100644
--- a/eclass/php5_1-sapi.eclass
+++ b/eclass/php5_1-sapi.eclass
@@ -1,715 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5_1-sapi.eclass,v 1.44 2008/05/25 09:27:48 hoffie Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php5_1-sapi.eclass,v 1.45 2009/11/30 04:19:36 abcd Exp $
-# ========================================================================
-#
-# php5_1-sapi.eclass
-# Eclass for building different php5.1 SAPI instances
-#
-# USE THIS ECLASS FOR THE "CONCENTRATED" PACKAGES
-#
-# Based on robbat2's work on the php4 sapi eclass
-#
-# Author: Stuart Herbert
-# <stuart@gentoo.org>
-#
-# Author: Luca Longinotti
-# <chtekk@gentoo.org>
-#
-# ========================================================================
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob frontbase hyperwave-api informix interbase msql oci8 sapdb solid sybase sybase-ct"
-
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
-
-inherit flag-o-matic autotools toolchain-funcs libtool eutils phpconfutils php-common-r1
-
-# set MY_PHP_P in the ebuild
-
-# we only set these variables if we're building a copy of php which can be
-# installed as a package in its own right
-#
-# copies of php which are compiled into other packages (e.g. php support
-# for the thttpd web server) don't need these variables
-
-if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- HOMEPAGE="http://www.php.net/"
- LICENSE="PHP-3"
- SRC_URI="http://www.php.net/distributions/${MY_PHP_P}.tar.bz2"
- S="${WORKDIR}/${MY_PHP_P}"
-fi
-
-IUSE="adabas bcmath berkdb birdstep bzip2 calendar cdb cjk crypt ctype curl curlwrappers db2 dbase dbmaker debug doc empress empress-bcs esoob exif filter frontbase fdftk filepro firebird flatfile ftp gd gd-external gdbm gmp hash hyperwave-api iconv imap informix inifile interbase iodbc ipv6 java-external kerberos ldap ldap-sasl libedit mcve memlimit mhash ming msql mssql mysql mysqli ncurses nls oci8 oci8-instant-client odbc pcntl pcre pdo pdo-external pic posix postgres qdbm readline reflection recode sapdb session sharedext sharedmem simplexml snmp soap sockets solid spell spl sqlite ssl suhosin sybase sybase-ct sysvipc tidy tokenizer truetype unicode wddx xml xmlreader xmlwriter xmlrpc xpm xsl yaz zip zlib"
-
-# these USE flags should have the correct dependencies
-DEPEND="adabas? ( >=dev-db/unixODBC-1.8.13 )
- berkdb? ( =sys-libs/db-4* )
- birdstep? ( >=dev-db/unixODBC-1.8.13 )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? ( !gd-external? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- db2? ( >=dev-db/unixODBC-1.8.13 )
- dbmaker? ( >=dev-db/unixODBC-1.8.13 )
- empress? ( >=dev-db/unixODBC-1.8.13 )
- empress-bcs? ( >=dev-db/unixODBC-1.8.13 )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib )
- gd-external? ( media-libs/gd )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client )
- iodbc? ( dev-db/libiodbc >=dev-db/unixODBC-1.8.13 )
- kerberos? ( virtual/krb5 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mcve? ( >=dev-libs/openssl-0.9.7 )
- mhash? ( app-crypt/mhash )
- ming? ( media-libs/ming )
- mssql? ( dev-db/freetds )
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- ncurses? ( sys-libs/ncurses )
- nls? ( sys-devel/gettext )
- oci8-instant-client? ( dev-db/oracle-instantclient-basic )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- postgres? ( || ( >=dev-db/libpq-7.1 ( app-admin/eselect-postgresql
- >=dev-db/postgresql-base-7.1 ) ) )
- qdbm? ( dev-db/qdbm )
- readline? ( sys-libs/readline )
- recode? ( app-text/recode )
- sapdb? ( >=dev-db/unixODBC-1.8.13 )
- sharedmem? ( dev-libs/mm )
- simplexml? ( >=dev-libs/libxml2-2.6.8 )
- snmp? ( >=net-analyzer/net-snmp-5.2 )
- soap? ( >=dev-libs/libxml2-2.6.8 )
- solid? ( >=dev-db/unixODBC-1.8.13 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( =dev-db/sqlite-3* ) )
- ssl? ( >=dev-libs/openssl-0.9.7 )
- sybase? ( dev-db/freetds )
- tidy? ( app-text/htmltidy )
- truetype? ( =media-libs/freetype-2* >=media-libs/t1lib-5.0.0 !gd? ( !gd-external? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) ) )
- wddx? ( >=dev-libs/libxml2-2.6.8 )
- xml? ( >=dev-libs/libxml2-2.6.8 )
- xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
- xmlreader? ( >=dev-libs/libxml2-2.6.8 )
- xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
- xpm? ( x11-libs/libXpm >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib )
- xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
- zlib? ( sys-libs/zlib )
- virtual/mta"
-
-# libswf conflicts with ming and should not
-# be installed with the new PHP ebuilds
-DEPEND="${DEPEND}
- !media-libs/libswf"
-
-# simplistic for now
-RDEPEND="${DEPEND}"
-
-# those are only needed at compile-time
-DEPEND="${DEPEND}
- >=sys-devel/m4-1.4.3
- >=sys-devel/libtool-1.5.18"
-
-# Additional features
-#
-# They are in PDEPEND because we need PHP installed first!
-PDEPEND="doc? ( app-doc/php-docs )
- java-external? ( dev-php5/php-java-bridge )
- mcve? ( dev-php5/pecl-mcve )
- pdo? ( !dev-php5/pecl-pdo )
- pdo-external? ( dev-php5/pecl-pdo )
- yaz? ( dev-php5/pecl-yaz )
- zip? ( dev-php5/pecl-zip )"
-
-# Until PECL-Filter is stable on all archs
-[[ "${PVR}" == "5.1.6-r11" ]] && PDEPEND="${PDEPEND} filter? ( dev-php5/pecl-filter )"
-
-# Until Suhosin is stable on all archs
-#PDEPEND="${PDEPEND} suhosin? ( dev-php5/suhosin )"
-
-# ========================================================================
-# php.ini Support
-# ========================================================================
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-dist"
-
-# ========================================================================
-
-# PHP patchsets support
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-# ========================================================================
-
-EXPORT_FUNCTIONS pkg_setup src_compile src_install src_unpack pkg_postinst
-
-# ========================================================================
-# INTERNAL FUNCTIONS
-# ========================================================================
-
-php5_1-sapi_check_use_flags() {
- # Multiple USE dependencies
- phpconfutils_use_depend_any "truetype" "gd" "gd" "gd-external"
- phpconfutils_use_depend_any "cjk" "gd" "gd" "gd-external"
- phpconfutils_use_depend_any "exif" "gd" "gd" "gd-external"
-
- # Simple USE dependencies
- phpconfutils_use_depend_all "xpm" "gd"
- phpconfutils_use_depend_all "gd" "zlib"
- phpconfutils_use_depend_all "simplexml" "xml"
- phpconfutils_use_depend_all "soap" "xml"
- phpconfutils_use_depend_all "wddx" "xml"
- phpconfutils_use_depend_all "xmlrpc" "xml"
- phpconfutils_use_depend_all "xmlreader" "xml"
- phpconfutils_use_depend_all "xmlwriter" "xml"
- phpconfutils_use_depend_all "xsl" "xml"
- phpconfutils_use_depend_all "xmlrpc" "iconv"
- phpconfutils_use_depend_all "filter" "pcre"
- phpconfutils_use_depend_all "java-external" "session"
- phpconfutils_use_depend_all "ldap-sasl" "ldap"
- phpconfutils_use_depend_all "mcve" "ssl"
- phpconfutils_use_depend_all "suhosin" "unicode"
- phpconfutils_use_depend_all "adabas" "odbc"
- phpconfutils_use_depend_all "birdstep" "odbc"
- phpconfutils_use_depend_all "dbmaker" "odbc"
- phpconfutils_use_depend_all "empress-bcs" "odbc" "empress"
- phpconfutils_use_depend_all "empress" "odbc"
- phpconfutils_use_depend_all "esoob" "odbc"
- phpconfutils_use_depend_all "db2" "odbc"
- phpconfutils_use_depend_all "iodbc" "odbc"
- phpconfutils_use_depend_all "sapdb" "odbc"
- phpconfutils_use_depend_all "solid" "odbc"
-
- # Direct USE conflicts
- phpconfutils_use_conflict "gd" "gd-external"
- phpconfutils_use_conflict "oci8" "oci8-instant-client"
- phpconfutils_use_conflict "pdo" "pdo-external"
- phpconfutils_use_conflict "qdbm" "gdbm"
- phpconfutils_use_conflict "readline" "libedit"
- phpconfutils_use_conflict "recode" "mysql" "imap" "yaz"
- phpconfutils_use_conflict "sharedmem" "threads"
-
- # IMAP support
- php_check_imap
-
- # Mail support
- php_check_mta
-
- # PostgreSQL support
- php_check_pgsql
-
- # Oracle support
- php_check_oracle_8
-
- phpconfutils_warn_about_external_deps
-
- export PHPCONFUTILS_AUTO_USE="${PHPCONFUTILS_AUTO_USE}"
-}
-
-php5_1-sapi_set_php_ini_dir() {
- PHP_INI_DIR="/etc/php/${PHPSAPI}-php5"
- PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
- PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
-}
-
-php5_1-sapi_install_ini() {
- destdir=/usr/$(get_libdir)/php5
-
- # get the extension dir, if not already defined
- [[ -z "${PHPEXTDIR}" ]] && PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`"
-
- # work out where we are installing the ini file
- php5_1-sapi_set_php_ini_dir
-
- cp "${PHP_INI_UPSTREAM}" "${PHP_INI_UPSTREAM}-${PHPSAPI}"
- local phpinisrc="${PHP_INI_UPSTREAM}-${PHPSAPI}"
-
- # Set the extension dir
- einfo "Setting extension_dir in php.ini"
- sed -e "s|^extension_dir .*$|extension_dir = ${PHPEXTDIR}|g" -i ${phpinisrc}
-
- # A patch for PHP for security
- einfo "Securing fopen wrappers"
- sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i ${phpinisrc}
-
- # Set the include path to point to where we want to find PEAR packages
- einfo "Setting correct include_path"
- sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php5:/usr/share/php"|' -i ${phpinisrc}
-
- # Add needed MySQL extensions charset configuration
- local phpmycnfcharset=""
-
- if [[ "${PHPSAPI}" == "cli" ]] ; then
- phpmycnfcharset="`php_get_mycnf_charset cli`"
- einfo "MySQL extensions charset for 'cli' SAPI is: ${phpmycnfcharset}"
- elif [[ "${PHPSAPI}" == "cgi" ]] ; then
- phpmycnfcharset="`php_get_mycnf_charset cgi-fcgi`"
- einfo "MySQL extensions charset for 'cgi' SAPI is: ${phpmycnfcharset}"
- elif [[ "${PHPSAPI}" == "apache2" ]] ; then
- phpmycnfcharset="`php_get_mycnf_charset apache2handler`"
- einfo "MySQL extensions charset for 'apache2' SAPI is: ${phpmycnfcharset}"
- else
- einfo "No supported SAPI found for which to get the MySQL charset."
- fi
-
- if [[ -n "${phpmycnfcharset}" ]] && [[ "${phpmycnfcharset}" != "empty" ]] ; then
- einfo "Setting MySQL extensions charset to ${phpmycnfcharset}"
- echo "" >> ${phpinisrc}
- echo "; MySQL extensions default connection charset settings" >> ${phpinisrc}
- echo "mysql.connect_charset = ${phpmycnfcharset}" >> ${phpinisrc}
- echo "mysqli.connect_charset = ${phpmycnfcharset}" >> ${phpinisrc}
- echo "pdo_mysql.connect_charset = ${phpmycnfcharset}" >> ${phpinisrc}
- else
- echo "" >> ${phpinisrc}
- echo "; MySQL extensions default connection charset settings" >> ${phpinisrc}
- echo ";mysql.connect_charset = utf8" >> ${phpinisrc}
- echo ";mysqli.connect_charset = utf8" >> ${phpinisrc}
- echo ";pdo_mysql.connect_charset = utf8" >> ${phpinisrc}
- fi
-
- dodir ${PHP_INI_DIR}
- insinto ${PHP_INI_DIR}
- newins ${phpinisrc} ${PHP_INI_FILE}
-
- dodir ${PHP_EXT_INI_DIR}
- dodir ${PHP_EXT_INI_DIR_ACTIVE}
-
- # Install any extensions built as shared objects
- if use sharedext ; then
- for x in `ls "${D}/${PHPEXTDIR}/"*.so | sort` ; do
- inifilename=${x/.so/.ini}
- inifilename=`basename ${inifilename}`
- echo "extension=`basename ${x}`" >> "${D}/${PHP_EXT_INI_DIR}/${inifilename}"
- dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}"
- done
- fi
-}
-
-# ========================================================================
-# EXPORTED FUNCTIONS
-# ========================================================================
-
-php5_1-sapi_pkg_setup() {
- # let's do all the USE flag testing before we do anything else
- # this way saves a lot of time
- php5_1-sapi_check_use_flags
-}
-
-php5_1-sapi_src_unpack() {
- cd "${S}"
-
- # Change PHP branding
- PHPPR=${PR/r/}
- sed -e "s|^EXTRA_VERSION=\"\"|EXTRA_VERSION=\"-pl${PHPPR}-gentoo\"|g" -i configure.in || die "Unable to change PHP branding to -pl${PHPPR}-gentoo"
-
- # multilib-strict support
- if [[ -n "${MULTILIB_PATCH}" ]] && [[ -f "${WORKDIR}/${MULTILIB_PATCH}" ]] ; then
- epatch "${WORKDIR}/${MULTILIB_PATCH}"
- else
- ewarn "There is no multilib-strict patch available for this PHP release yet!"
- fi
-
- # Apply general PHP5 patches
- if [[ -d "${WORKDIR}/${MY_PHP_PV}/php5" ]] ; then
- EPATCH_SOURCE="${WORKDIR}/${MY_PHP_PV}/php5" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
- fi
-
- # Apply version-specific PHP patches
- if [[ -d "${WORKDIR}/${MY_PHP_PV}/${MY_PHP_PV}" ]] ; then
- EPATCH_SOURCE="${WORKDIR}/${MY_PHP_PV}/${MY_PHP_PV}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
- fi
-
- # Patch PHP to show Gentoo as the server platform
- sed -e "s/PHP_UNAME=\`uname -a | xargs\`/PHP_UNAME=\`uname -s -n -r -v | xargs\`/g" -i configure.in || die "Failed to fix server platform name"
-
- # Disable interactive make test
- sed -e 's/'`echo "\!getenv('NO_INTERACTION')"`'/false/g' -i run-tests.php
-
- # Stop PHP from activating the Apache config, as we will do that ourselves
- for i in configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 ; do
- sed -i.orig -e 's,-i -a -n php5,-i -n php5,g' ${i}
- sed -i.orig -e 's,-i -A -n php5,-i -n php5,g' ${i}
- done
-
- # Patch PHP to support heimdal instead of mit-krb5
- if has_version "app-crypt/heimdal" ; then
- sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 || die "Failed to fix heimdal libname"
- sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 || die "Failed to fix heimdal crypt library reference"
- fi
-
- # Patch for PostgreSQL support
- if use postgres ; then
- sed -e 's|include/postgresql|include/postgresql include/postgresql/pgsql|g' -i ext/pgsql/config.m4 || die "Failed to fix PostgreSQL include paths"
- fi
-
- # Suhosin support
- if use suhosin ; then
- if [[ -n "${SUHOSIN_PATCH}" ]] && [[ -f "${DISTDIR}/${SUHOSIN_PATCH}" ]] ; then
- epatch "${DISTDIR}/${SUHOSIN_PATCH}"
- else
- ewarn "There is no Suhosin patch available for this PHP release yet!"
- fi
- fi
-
- # Fix configure scripts to correctly support Suhosin
- einfo "Running aclocal"
- aclocal --force || die "Unable to run aclocal successfully"
- einfo "Running libtoolize"
- libtoolize --copy --force || die "Unable to run libtoolize successfully"
-
- # Rebuild configure to make sure it's up to date
- einfo "Rebuilding configure script"
- autoreconf --force -W no-cross || die "Unable to regenerate configure script successfully"
-
- # Run elibtoolize
- elibtoolize
-
- # Just in case ;-)
- chmod 0755 configure || die "Failed to chmod configure to 0755"
-}
-
-php5_1-sapi_src_compile() {
- destdir=/usr/$(get_libdir)/php5
-
- php5_1-sapi_set_php_ini_dir
-
- cd "${S}"
-
- phpconfutils_init
-
- my_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE} --without-pear"
-
- # extension USE flag shared support?
- phpconfutils_extension_enable "bcmath" "bcmath" 1
- phpconfutils_extension_with "bz2" "bzip2" 1
- phpconfutils_extension_enable "calendar" "calendar" 1
- phpconfutils_extension_disable "ctype" "ctype" 0
- phpconfutils_extension_with "curl" "curl" 1
- phpconfutils_extension_with "curlwrappers" "curlwrappers" 0
- phpconfutils_extension_enable "dbase" "dbase" 1
- phpconfutils_extension_disable "dom" "xml" 0
- phpconfutils_extension_enable "exif" "exif" 1
- phpconfutils_extension_with "fbsql" "frontbase" 1
- phpconfutils_extension_with "fdftk" "fdftk" 1 "/opt/fdftk-6.0"
- phpconfutils_extension_enable "filepro" "filepro" 1
- phpconfutils_extension_enable "ftp" "ftp" 1
- phpconfutils_extension_with "gettext" "nls" 1
- phpconfutils_extension_with "gmp" "gmp" 1
- phpconfutils_extension_disable "hash" "hash" 0
- phpconfutils_extension_with "hwapi" "hyperwave-api" 1
- phpconfutils_extension_without "iconv" "iconv" 0
- phpconfutils_extension_with "informix" "informix" 1
- phpconfutils_extension_disable "ipv6" "ipv6" 0
- phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr"
- phpconfutils_extension_disable "libxml" "xml" 0
- phpconfutils_extension_enable "mbstring" "unicode" 1
- phpconfutils_extension_with "mcrypt" "crypt" 1
- phpconfutils_extension_enable "memory-limit" "memlimit" 0
- phpconfutils_extension_with "mhash" "mhash" 1
- phpconfutils_extension_with "ming" "ming" 1
- phpconfutils_extension_with "msql" "msql" 1
- phpconfutils_extension_with "mssql" "mssql" 1
- phpconfutils_extension_with "ncurses" "ncurses" 1
- phpconfutils_extension_with "openssl" "ssl" 0
- phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr"
- phpconfutils_extension_enable "pcntl" "pcntl" 1
- phpconfutils_extension_without "pcre-regex" "pcre" 0
- phpconfutils_extension_disable "pdo" "pdo" 0
- phpconfutils_extension_with "pgsql" "postgres" 1
- phpconfutils_extension_disable "posix" "posix" 0
- phpconfutils_extension_with "pspell" "spell" 1
- phpconfutils_extension_with "recode" "recode" 1
- phpconfutils_extension_disable "reflection" "reflection" 0
- phpconfutils_extension_disable "simplexml" "simplexml" 0
- phpconfutils_extension_enable "shmop" "sharedmem" 0
- phpconfutils_extension_with "snmp" "snmp" 1
- phpconfutils_extension_enable "soap" "soap" 1
- phpconfutils_extension_enable "sockets" "sockets" 1
- phpconfutils_extension_disable "spl" "spl" 0
- phpconfutils_extension_with "sybase" "sybase" 1
- phpconfutils_extension_with "sybase-ct" "sybase-ct" 1
- phpconfutils_extension_enable "sysvmsg" "sysvipc" 1
- phpconfutils_extension_enable "sysvsem" "sysvipc" 1
- phpconfutils_extension_enable "sysvshm" "sysvipc" 1
- phpconfutils_extension_with "tidy" "tidy" 1
- phpconfutils_extension_disable "tokenizer" "tokenizer" 0
- phpconfutils_extension_enable "wddx" "wddx" 1
- phpconfutils_extension_disable "xml" "xml" 0
- phpconfutils_extension_disable "xmlreader" "xmlreader" 0
- phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0
- phpconfutils_extension_with "xmlrpc" "xmlrpc" 1
- phpconfutils_extension_with "xsl" "xsl" 1
- phpconfutils_extension_with "zlib" "zlib" 1
- phpconfutils_extension_enable "debug" "debug" 0
-
- # DBA support
- if use cdb || use berkdb || use flatfile || use gdbm || use inifile || use qdbm ; then
- my_conf="${my_conf} --enable-dba${shared}"
- fi
-
- # DBA drivers support
- phpconfutils_extension_with "cdb" "cdb" 0
- phpconfutils_extension_with "db4" "berkdb" 0
- phpconfutils_extension_with "flatfile" "flatfile" 0
- phpconfutils_extension_with "gdbm" "gdbm" 0
- phpconfutils_extension_with "inifile" "inifile" 0
- phpconfutils_extension_with "qdbm" "qdbm" 0
-
- # Support for the GD graphics library
- if use gd-external || phpconfutils_usecheck gd-external ; then
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "gd" "gd-external" 1 "/usr"
- else
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "png-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr/X11R6"
- # enable gd last, so configure can pick up the previous settings
- phpconfutils_extension_with "gd" "gd" 0
- fi
-
- # IMAP support
- if use imap || phpconfutils_usecheck imap ; then
- phpconfutils_extension_with "imap" "imap" 1
- phpconfutils_extension_with "imap-ssl" "ssl" 0
- fi
-
- # Interbase support
- if use firebird || use interbase ; then
- my_conf="${my_conf} --with-interbase=/usr"
- fi
-
- # LDAP support
- if use ldap || phpconfutils_usecheck ldap ; then
- phpconfutils_extension_with "ldap" "ldap" 1
- phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0
- fi
-
- # MySQL support
- if use mysql ; then
- phpconfutils_extension_with "mysql" "mysql" 1 "/usr"
- phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock"
- fi
-
- # MySQLi support
- phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config"
-
- # ODBC support
- if use odbc || phpconfutils_usecheck odbc ; then
- phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr"
-
- phpconfutils_extension_with "adabas" "adabas" 1
- phpconfutils_extension_with "birdstep" "birdstep" 1
- phpconfutils_extension_with "dbmaker" "dbmaker" 1
- phpconfutils_extension_with "empress" "empress" 1
- if use empress || phpconfutils_usecheck empress ; then
- phpconfutils_extension_with "empress-bcs" "empress-bcs" 0
- fi
- phpconfutils_extension_with "esoob" "esoob" 1
- phpconfutils_extension_with "ibm-db2" "db2" 1
- phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr"
- phpconfutils_extension_with "sapdb" "sapdb" 1
- phpconfutils_extension_with "solid" "solid" 1
- fi
-
- # Oracle support
- if use oci8 ; then
- phpconfutils_extension_with "oci8" "oci8" 1
- fi
- if use oci8-instant-client ; then
- OCI8IC_PKG="`best_version dev-db/oracle-instantclient-basic`"
- OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`"
- phpconfutils_extension_with "oci8" "oci8-instant-client" 1 "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib"
- fi
-
- # PDO support
- if use pdo || phpconfutils_usecheck pdo ; then
- phpconfutils_extension_with "pdo-dblib" "mssql" 1
- # The PDO-Firebird driver is broken and unmaintained upstream
- # phpconfutils_extension_with "pdo-firebird" "firebird" 1
- phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr"
- if use oci8 ; then
- phpconfutils_extension_with "pdo-oci" "oci8" 1
- fi
- if use oci8-instant-client ; then
- OCI8IC_PKG="`best_version dev-db/oracle-instantclient-basic`"
- OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`"
- phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 "instantclient,/usr,${OCI8IC_PKG}"
- fi
- phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr"
- phpconfutils_extension_with "pdo-pgsql" "postgres" 1
- phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "/usr"
- fi
-
- # readline/libedit support
- # You can use readline or libedit, but you can't use both
- phpconfutils_extension_with "readline" "readline" 0
- phpconfutils_extension_with "libedit" "libedit" 0
-
- # Session support
- if ! use session && ! phpconfutils_usecheck session ; then
- phpconfutils_extension_disable "session" "session" 0
- else
- phpconfutils_extension_with "mm" "sharedmem" 0
- fi
-
- # SQLite support
- if ! use sqlite && ! phpconfutils_usecheck sqlite ; then
- phpconfutils_extension_without "sqlite" "sqlite" 0
- else
- phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr"
- phpconfutils_extension_enable "sqlite-utf8" "unicode" 0
- fi
-
- # Fix ELF-related problems
- if use pic || phpconfutils_usecheck pic ; then
- einfo "Enabling PIC support"
- my_conf="${my_conf} --with-pic"
- fi
-
- # Catch CFLAGS problems
- php_check_cflags
-
- # multilib support
- if [[ $(get_libdir) != lib ]] ; then
- my_conf="--with-libdir=$(get_libdir) ${my_conf}"
- fi
-
- # Support user-passed configuration parameters
- [[ -z "${EXTRA_ECONF}" ]] && EXTRA_ECONF=""
-
- # Set the correct compiler for cross-compilation
- tc-export CC
-
- # We don't use econf, because we need to override all of its settings
- ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed"
- emake || die "make failed"
-}
-
-php5_1-sapi_src_install() {
- destdir=/usr/$(get_libdir)/php5
-
- cd "${S}"
-
- addpredict /usr/share/snmp/mibs/.index
-
- # Install PHP
- make INSTALL_ROOT="${D}" install-build install-headers install-programs || die "make install failed"
-
- # Install missing header files
- if use unicode || phpconfutils_usecheck unicode ; then
- dodir ${destdir}/include/php/ext/mbstring
- insinto ${destdir}/include/php/ext/mbstring
- for x in `ls "${S}/ext/mbstring/"*.h` ; do
- file=`basename ${x}`
- doins ext/mbstring/${file}
- done
- dodir ${destdir}/include/php/ext/mbstring/oniguruma
- insinto ${destdir}/include/php/ext/mbstring/oniguruma
- for x in `ls "${S}/ext/mbstring/oniguruma/"*.h` ; do
- file=`basename ${x}`
- doins ext/mbstring/oniguruma/${file}
- done
- dodir ${destdir}/include/php/ext/mbstring/libmbfl/mbfl
- insinto ${destdir}/include/php/ext/mbstring/libmbfl/mbfl
- for x in `ls "${S}/ext/mbstring/libmbfl/mbfl/"*.h` ; do
- file=`basename ${x}`
- doins ext/mbstring/libmbfl/mbfl/${file}
- done
- fi
-
- # Get the extension dir, if not already defined
- [[ -z "${PHPEXTDIR}" ]] && PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`"
-
- # And install the modules to it
- if use sharedext ; then
- for x in `ls "${S}/modules/"*.so | sort` ; do
- module=`basename ${x}`
- modulename=${module/.so/}
- insinto "${PHPEXTDIR}"
- einfo "Installing PHP ${modulename} extension"
- doins "modules/${module}"
- done
- fi
-
- # Generate the USE file for PHP
- phpconfutils_generate_usefile
-
- # Create the directory where we'll put php5-only php scripts
- keepdir /usr/share/php5
-}
-
-php5_1-sapi_pkg_postinst() {
- ewarn
- ewarn "If you have additional third party PHP extensions (such as"
- ewarn "dev-php5/phpdbg) you may need to recompile them now."
- ewarn "A new way of enabling/disabling PHP extensions was introduced"
- ewarn "with the newer PHP packages releases, so please reemerge any"
- ewarn "PHP extensions you have installed to automatically adapt to"
- ewarn "the new configuration layout."
- if use sharedext ; then
- ewarn "The core PHP extensions are now loaded through external"
- ewarn ".ini files, not anymore using a 'extension=name.so' line"
- ewarn "in the php.ini file. Portage will take care of this by"
- ewarn "creating new, updated config-files, please make sure to"
- ewarn "install those using etc-update or dispatch-conf."
- fi
- ewarn
-
- if use curl ; then
- ewarn "Please be aware that CURL can allow the bypass of open_basedir restrictions."
- ewarn "This can be a security risk!"
- ewarn
- fi
-
- ewarn "The 'pic' USE flag was added to newer releases of dev-lang/php."
- ewarn "With PIC enabled, your PHP installation may become slower, but"
- ewarn "PIC is required on Hardened-Gentoo platforms (where the USE flag"
- ewarn "is enabled automatically). You may also need this on other"
- ewarn "configurations where TEXTRELs are disabled, for example when using"
- ewarn "certain PaX options in the kernel."
- ewarn
-
- ewarn "With PHP 5.1, some extensions were removed from PHP because"
- ewarn "they were unmaintained or moved to PECL. Our ebuilds reflect"
- ewarn "this: the Oracle extension was removed ('oracle7' USE flag),"
- ewarn "please use the 'oci8' USE flag for Oracle support now and/or"
- ewarn "the PDO OCI8 driver, enabled if you set both the 'oci8' and"
- ewarn "'pdo' USE flags. Also, the MCVE extension was moved to PECL"
- ewarn "and thus can now be found in dev-php5/pecl-mcve. The Ovrimos"
- ewarn "and Pfpro extensions were removed altogether and have no"
- ewarn "available substitute."
- ewarn "The 'vm-goto' and 'vm-switch' USE flags were also removed,"
- ewarn "since the alternative VMs aren't really supported upstream."
- ewarn "Once their state becomes clearer, we'll consider readding them."
- ewarn "The configure option --enable-gd-native-ttf (enabled by the"
- ewarn "'truetype' USE flag) was removed at upstreams request,"
- ewarn "as it's considered old and broken."
- ewarn "Hardened-PHP was also removed from the PHP 5.1 ebuilds in"
- ewarn "favour of its successor Suhosin, enable the 'suhosin' USE"
- ewarn "flag to install it."
- ewarn
-
- ewarn "The 'xml' and 'xml2' USE flags were unified in only the 'xml' USE"
- ewarn "flag. To get the features that were once controlled by the 'xml2'"
- ewarn "USE flag, turn the 'xml' USE flag on."
- ewarn
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/tetex-2.eclass b/eclass/tetex-2.eclass
index 6cdcb745dda2..20c3f8a089a6 100644
--- a/eclass/tetex-2.eclass
+++ b/eclass/tetex-2.eclass
@@ -1,2 +1,7 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/tetex-2.eclass,v 1.8 2009/11/30 04:19:36 abcd Exp $
+
# @DEAD
-ewarn "Please fix your package (${PF}) to not use ${ECLASS}.eclass"
+# To be removed on 2011/05/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/unipatch-001.eclass b/eclass/unipatch-001.eclass
index 2e1706f19627..905a79ace141 100644
--- a/eclass/unipatch-001.eclass
+++ b/eclass/unipatch-001.eclass
@@ -1,312 +1,7 @@
-#
-# Documentation is certain to come, but please disregard this eclass for the
-# time being, until it has been through more testing.
-#
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/unipatch-001.eclass,v 1.7 2009/11/30 04:19:36 abcd Exp $
-unipatch() {
- # Behavioural environment variables.
- # UNIPATCH_STRICTORDER
- # UNIPATCH_EXCLUDE
- # KPATCH_DIR
- # UNIPATCH_POPTS
- # UNIPATCH_SILENT_DROP
-
- local myLC_ALL
- local checkfile checkfile_noext checkfile_ext checkfile_patchlvl
- local checkfile_meta checkfile_patchdir checkfile_suffix
- local strictcount i n pipecmd
- local file_list patch_to_process patch_plevel
-
- # set to a standard locale to ensure sorts are ordered properly.
- myLC_ALL="${LC_ALL}"
- LC_ALL="C"
-
- # Setup UNIPATCH_POPTS if not set already
- UNIPATCH_POPTS=${UNIPATCH_POPTS:--g0 -s}
-
- # Set UNIPATCH_SILENT_DROP if not already set
- # Please bare in mind these *cannot* start with an asterisk
- UNIPATCH_SILENT_DROP='000*'
-
- # We need a temporary directory in which we can stor our patches.
- KPATCH_DIR="${KPATCH_DIR:-${WORKDIR}/patches/}"
- mkdir -p ${KPATCH_DIR}
-
- # We're gonna need it when doing patches with a predefined patchlevel
- shopt -s extglob
-
- # lets obtain our patch list
- # any .diff/.patch/compressed file is added, and if neccessary decompressed.
- # any tarred file is unpacked and added
- # anything else is added to the drop pattern
- UNIPATCH_LIST="${@:-${UNIPATCH_LIST}}"
-
- n=0
- strictcount=0
- for checkfile in ${UNIPATCH_LIST}
- do
- # unset parsed vars first
- unset checkfile_suffix
- unset checkfile_ext
- unset checkfile_patchdir
- checkfile_patchlvl=0
-
- # did we pass suffix? or a patchlvl?
- for((i=0; i<=${#checkfile}; i++)); do
- case ${checkfile:${i}:1} in
- @) checkfile_suffix="${checkfile:0:${i}}";;
- :) checkfile_patchlvl="${checkfile:${i}}";;
- esac
- done
-
- # now lets sane up the checkfile var
- [[ -n ${checkfile_suffix} ]] && checkfile=${checkfile//*@}
- [[ -n ${checkfile_patchlvl} ]] && checkfile=${checkfile//:*}
-
- # is this file even valid?
- if [[ ! -f ${checkfile} ]]; then
- ewarn "Unable to read file:"
- ewarn "${checkfile}"
- ewarn "Please check this file exists, and its permissions."
- die "unable to locate ${checkfile}"
- fi
-
- #if we use strict dir, then lets prepend an order
- if [[ -n ${UNIPATCH_STRICTORDER} ]]; then
- checkfile_patchdir=${KPATCH_DIR}/${strictcount}/
- mkdir -p ${checkfile_patchdir}
- strictcount=$((${strictcount} + 1))
- fi
-
- # Find the directory we are placing this in.
- checkfile_patchdir="${checkfile_patchdir:-${KPATCH_DIR}}"
-
- # so now lets get finding patches.
- # This is a list of patterns to match, and the resulting extention.
- # you MUST specify the LEAST specific first, if the pattern would match
- # more than one extension. think, .tar.gz vs. .gz
- local testvalues test value temp
- testvalues='*:DROP
- *README:DOC
- *.txt:DOC
- *.gz*:gz
- *.bz*:bz2
- *.tar.bz*:tbz
- *.tbz*:tbz
- *.tar.gz*:tgz
- *.tgz*:tgz
- *.tar:tar
- *.z*:gz
- *.zip*:zip
- *.diff*:diff
- *.patch*:patch'
-
- # lets see if we qualify for one of the above
- for i in $testvalues; do
- value=${i/*:/}
- test=${i/:*/}
- temp=${checkfile/${test}/${value}}
- if [[ ${temp} == ${value} ]]
- then
- # if we do, then set the extention and the filename, minus ext.
- checkfile_ext="${temp}"
- checkfile_noext="${checkfile/${test:1}/}"
- fi
- done
-
- # if we specify a suffix, we want to over-ride the above now.
- [[ -n ${checkfile_suffix} ]] && \
- checkfile_ext="${checkfile_suffix}" \
- checkfile_noext="${checkfile/${checkfile_suffix}/}"
-
- # set metafile
- checkfile_meta="${checkfile_patchdir}/.meta_${checkfile_noext/*\//}"
-
- # Debug environment
- edebug 3 "Debug environment variables"
- edebug 3 "---------------------------"
- edebug 3 "checkfile=${checkfile}"
- edebug 3 "checkfile_ext=${checkfile_ext}"
- edebug 3 "checkfile_noext=${checkfile_noext}"
- edebug 3 "checkfile_patchdir=${checkfile_patchdir}"
- edebug 3 "checkfile_patchlvl=${checkfile_patchlvl}"
- edebug 3 "checkfile_meta=${checkfile_meta}"
- edebug 3 "checkfile_suffix=${checkfile_suffix}"
-
- # and setup the appropriate pipecmd for it.
- # the outcome of this should leave the file we want in the patch dir
- case ${checkfile_ext} in
- tbz) pipecmd="mkdir ${T}/ptmp/;
- cd ${T}/ptmp/;
- tar -xjf ${checkfile};
- find . -type f | sed -e \
- 's:\./:${checkfile_patchdir}:g' \
- > ${checkfile_meta}_files;
- cp -Rf ${T}/ptmp/* ${checkfile_patchdir};
- rm -Rf ${T}/ptmp;
- cd \${OLDPWD}";;
- tgz) pipecmd="mkdir ${T}/ptmp/;
- cd ${T}/ptmp/;
- tar -xzf ${checkfile};
- find . -type f | sed -e \
- 's:\./:${checkfile_patchdir}:g' \
- > ${checkfile_meta}_files;
- cp -Rf ${T}/ptmp/* ${checkfile_patchdir};
- rm -Rf ${T}/ptmp;
- cd \${OLDPWD}";;
- tar) pipecmd="mkdir ${T}/ptmp/;
- cd ${T}/ptmp/;
- tar -xf ${checkfile};
- find . -type f | sed -e \
- 's:\./:${checkfile_patchdir}:g' \
- > ${checkfile_meta}_files;
- cp -Rf ${T}/ptmp/* ${checkfile_patchdir};
- rm -Rf ${T}/ptmp;
- cd \${OLDPWD}";;
- zip) pipecmd="mkdir ${T}/ptmp/;
- cd ${T}/ptmp/;
- unzip ${checkfile};
- find . -type f | sed -e \
- 's:\./:${checkfile_patchdir}:g' \
- > ${checkfile_meta}_files;
- cp -Rf ${T}/ptmp/* ${checkfile_patchdir};
- rm -Rf ${T}/ptmp;
- cd \${OLDPWD}";;
- diff) pipecmd="cp ${checkfile} ${checkfile_patchdir};
- echo ${checkfile_patchdir}/${checkfile/*\//} \
- > ${checkfile_meta}_files;";;
- patch) pipecmd="cp ${checkfile} ${checkfile_patchdir};
- echo ${checkfile_patchdir}/${checkfile/*\//} \
- > ${checkfile_meta}_files;";;
- gz) pipecmd="gzip -dc ${checkfile} > ${T}/gunzip;
- cp ${T}/gunzip ${checkfile_patchdir}${checkfile_noext/*\//}.diff;
- rm ${T}/gunzip;
- echo ${checkfile_patchdir}/${checkfile_noext/*\//}.diff \
- > ${checkfile_meta}_files;";;
- bz2) pipecmd="bzip2 -dc ${checkfile} > ${T}/bunzip;
- cp ${T}/bunzip ${checkfile_patchdir}${checkfile_noext/*\//}.diff;
- rm ${T}/bunzip;
- echo ${checkfile_patchdir}/${checkfile_noext/*\//}.diff \
- > ${checkfile_meta}_files;";;
- DROP) pipecmd="";;
- DOC) pipecmd="cp ${checkfile} ${checkfile_patchdir}";;
- esac
-
- # Debug environment
- edebug 3 "pipecmd=${pipecmd}"
-
- if [[ -z ${pipecmd} ]]; then
- # if we dont know about it, lets drop it and move to the next
- einfo "Unknown Filetype, Ignoring: ${checkfile/*\//}"
- else
- # if we do know about it, prepare it for patching, and
- # populate metadata
- ebegin "Preparing ${checkfile/*\//}"
- eval ${pipecmd}
- eend $?
-
- echo "PATCHLVL=${checkfile_patchlvl}" >> ${checkfile_meta}
- fi
- done
-
- # OK so now we got this far, we have everything neatly unpacked.
- # we should probably build up our patch-list.
- edebug 2 "Locating .meta_*_files and building patch list"
-
- for i in $(find ${KPATCH_DIR} -iname ".meta_*_files")
- do
- file_list=$(sort -n ${i})
- patch_plevel=$(sed -e 's:PATCHLVL=\(.*\):\1:' < ${i/_files/} | uniq)
- edebug 3 "processing: ${i}"
- edebug 3 "file_list=${file_list}"
- edebug 3 "patch_plevel=${patch_plevel}"
-
- # OK, so now we have trhe list of files to process in this metafile
- # we should process the patch.
- for patch_to_process in ${file_list}; do
- edebug 2 "Processing: ${patch_to_process}"
-
- # if we pass UNIPATCH_EXCLUDE then we scan through that.
- # if we find a match, we dont bother applying it.
- # This is done here to catch files within tarballs.
- local tempname to_patch=1
-
- tempname="${patch_to_process/*\//}"
- # Process silent drops
- for x in ${UNIPATCH_SILENT_DROP}; do
- edebug 4 "Checking ${x} against ${tempname} = ${tempname//${x}}"
- if [[ -z ${tempname//${x}} ]]; then
- to_patch=-1
- edebug 2 "Dropping ${tempname} based on ${x} match"
- break;
- fi
- done
-
- # Process excludes
- for x in ${UNIPATCH_EXCLUDE}; do
- [[ -z ${tempname/${x}*/} ]] && to_patch=0
- done
-
- if [[ ${to_patch} -eq -1 ]]; then
- # This is something we silently ignore
- :
- elif [[ ${to_patch} -eq 1 ]]; then
- apply_patch ${patch_to_process}
- else
- einfo "Excluding: ${tempname}"
- fi
- unset tempname to_patch
- done
- done
-
- LC_ALL=${myLC_ALL}
-}
-
-apply_patch() {
- local plvl patch_log pmsg
- plvl=${patch_plevel}
- patch_log="${T}/${1/*\//}.log"
-
- echo "************" > ${patch_log}
- echo "patch log for file:" >> ${patch_log}
- echo "${1}" >> ${patch_log}
- echo "************" >> ${patch_log}
- while [ ${plvl} -lt 5 ]
- do
- edebug 3 "Attempting patch (${1}) with -p${plvl} (${UNIPATCH_POPTS})"
-
- echo "Attempting:" >> ${patch_log}
- echo "patch ${UNIPATCH_POPTS} -p${plvl} --dry-run -f" >> ${patch_log}
- if (patch ${UNIPATCH_POPTS} -p${plvl} --dry-run -f < ${1}) >> ${patch_log}
- then
- [[ ${VERBOSITY} -ge 1 ]] && pmsg="-p${plvl}"
- [[ ${VERBOSITY} -ge 2 ]] && pmsg="${UNIPATCH_POPTS} ${pmsg}"
- [[ -n ${pmsg} ]] && pmsg=" (${pmsg})"
- echo "**** Applying:" >> ${patch_log}
- ebegin "Applying patch: ${1/*\//}${pmsg}"
- patch ${UNIPATCH_POPTS} -p${plvl} -f < ${1} >> ${patch_log}
- eend $?
- plvl=6
- else
- plvl=$((${plvl} + 1))
- fi
- done
- if [ ${plvl} -eq 5 ]
- then
- ewarn "Unable to apply patch: ${1/*\//}"
- ewarn "Please attach the following patch log when submitting"
- ewarn "a bug."
- ewarn "${patch_log}"
- die "Unable to apply patch: ${1/*\//}"
- fi
-}
-
-edebug() {
- local verbosity msg
- verbos=${1}
- shift
- msg=${@}
-
- VERBOSITY=${VERBOSITY:-0}
- [ ${VERBOSITY} -ge ${verbos} ] && echo "(DD): ${msg}"
-}
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/webapp-apache.eclass b/eclass/webapp-apache.eclass
deleted file mode 100644
index 0638453df891..000000000000
--- a/eclass/webapp-apache.eclass
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/webapp-apache.eclass,v 1.29 2007/07/29 16:37:20 phreak Exp $
-#
-# Author: Stuart Herbert <stuart@gentoo.org>
-#
-# Based on discussions held on gentoo-dev mailing list, and a bug report
-# contributed by Ian Leitch <port001@w0r.mine.nu> in bug #14870,
-# and robbat2's mod_php ebuild
-#
-# This package will be offically deprecated when vhost-config and
-# webapp-config from GLEP11 are released.
-
-IUSE="apache2"
-DEPEND="${DEPEND} www-servers/apache"
-
-EXPORT_FUNCTIONS pkg_setup
-
-# NOTE:
-#
-# It is deliberate that the functions in this eclass are called
-# 'webapp-xxx' rather than 'webapp-apache-xxx'. This ensures
-# that we can drop in eclasses for other web servers without
-# having to change the ebuilds!
-
-function webapp-apache-detect ()
-{
- APACHEVER=
- has_version '=www-servers/apache-2*' && APACHEVER=2 && CONFVER=2
- [ -z "${APACHEVER}" ] && has_version '=www-servers/apache-2*' && APACHEVER=2 && CONFVER=2
-
- if [ "${APACHEVER}+" = "+" ]; then
- # no apache version detected
- return 1
- fi
-
- APACHECONF="/etc/apache${CONFVER}/conf/apache${CONFVER}.conf"
- APACHECONF_COMMON="/etc/apache${CONFVER}/conf/commonapache${CONFVER}.conf"
- APACHECONF_DIR="/etc/apache${CONFVER}/conf/"
- WEBAPP_SERVER="Apache v${APACHEVER}"
-}
-
-# run the function, so we know which version of apache we are using
-
-function webapp-detect () {
- webapp-apache-detect || return 1
- webapp-determine-installowner
- webapp-determine-htdocsdir
- webapp-determine-cgibindir
-
- # explicit return here to ensure the return code
- # from webapp-determine-cgibindir above isn't returned instead
-
- return 0
-}
-
-function webapp-mkdirs () {
- webapp-determine-htdocsdir
- webapp-determine-cgibindir
-
- keepdir "$HTTPD_ROOT"
- fowners "$HTTPD_USER":"$HTTPD_GROUP" "$HTTPD_ROOT"
- fperms 755 "$HTTPD_ROOT"
-
- # explicit return here to ensure the return code
- # from above isn't returned instead
-
- return 0
-}
-
-function webapp-determine-htdocsdir ()
-{
- webapp-determine-installowner
-
-# HTTPD_ROOT="`grep '^DocumentRoot' ${APACHECONF} | cut -d ' ' -f 2`"
-# [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs/"
- # temporary fix for webapps
- HTTPD_ROOT="/var/www/localhost/htdocs/"
-}
-
-function webapp-determine-cgibindir ()
-{
- #HTTPD_CGIBIN="`grep 'ScriptAlias /cgi-bin/' ${APACHECONF_COMMON} | cut -d ' ' -f 7`"
- #[ -z "${HTTPD_CGIBIN}" ] && HTTPD_CGIBIN="/home/httpd/cgi-bin/"
- # temporary fix for webapps
- HTTPD_CGIBIN="/var/www/localhost/cgi-bin/"
-}
-
-function webapp-determine-installowner ()
-{
- HTTPD_USER="apache"
- HTTPD_GROUP="apache"
-}
-
-
-function webapp-pkg_setup ()
-{
- if [ "$1" == "1" ]; then
- msg="I couldn't find an installation of Apache"
- eerror "${msg}"
- die "${msg}"
- fi
-
- ewarn "Ebuilds (like this one) that use the webapp-apache.eclass need to"
- ewarn "be converted to use the new webapp.eclass, to be compatible with"
- ewarn "webapp-config."
- ewarn
- ewarn "Please file a bug on http://bugs.gentoo.org/, stating that this"
- ewarn "ebuild needs converting to use the new approach."
-}
diff --git a/eclass/wxlib.eclass b/eclass/wxlib.eclass
deleted file mode 100644
index d31effd17d08..000000000000
--- a/eclass/wxlib.eclass
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/wxlib.eclass,v 1.21 2009/08/29 00:59:24 dirtyepic Exp $
-
-# @DEAD
-
-##############################
-# This eclass is deprecated. #
-##############################
-
-inherit eutils
-
-configure_build() {
- ewarn "wxlib.eclass is deprecated."
-}
-
-subconfigure() {
- ewarn "wxlib.eclass is deprecated."
-}
-
-install_build() {
- ewarn "wxlib.eclass is deprecated."
-}
-
-wxlib_src_install() {
- ewarn "wxlib.eclass is deprecated."
-}
-
-EXPORT_FUNCTIONS src_install
diff --git a/eclass/x11.eclass b/eclass/x11.eclass
index 050aaa7c104c..74b56df9cdea 100644
--- a/eclass/x11.eclass
+++ b/eclass/x11.eclass
@@ -1,157 +1,7 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/x11.eclass,v 1.11 2009/02/22 12:31:19 loki_val Exp $
-#
-# Author: Seemant Kulleen <seemant@gentoo.org>
-#
-# The x11.eclass is designed to ease the checking functions that are
-# performed in xorg-x11, xfree and x11-drm ebuilds. In the new scheme, a
-# variable called VIDEO_CARDS will be used to indicate which cards a user
-# wishes to build support for. Note, that this variable is only unlocked if
-# the USE variable "expertxfree" is switched on, at least for xfree.
-
-inherit linux-info
-
-vcards() {
- has "$1" ${VIDEO_CARDS} && return 0
- return 1
-}
-
-filter-patch() {
- mv ${PATCH_DIR}/"*${1}*" ${PATCH_DIR}/excluded
-}
-
-patch_exclude() {
- # Exclude patches matching a pattern if they exist
- for PATCH_GROUP in ${@}
- do
- # Repress errors for non-matching patterns, they're ugly
- for PATCH in $(ls ${PATCHDIR}/${PATCH_GROUP}* 2> /dev/null)
- do
- if [ -a "${PATCH}" ]
- then
- ebegin " `basename ${PATCH}`"
- mv -f ${PATCH} ${EXCLUDED}
- eend 0
- fi
- done
- done
-}
-
-
-# This is to ease kernel checks for patching and other things. (spyderous)
-# Kernel checker is_kernel $1 $2 where $1 is KV_major and $2 is KV_minor.
-# is_kernel "2" "4" should map to a 2.4 kernel, etc.
-#
-# This function is DEPRECATED and should not be used anywhere in ebuilds!
-# Use kernel_is() from linux-info.eclas instead!
-
-check_version_h() {
- check_kernel_built
-}
-
-get_KV_info() {
- check_version_h
- get_version
-
- # Not used anywhere, leaving here just in case...
- export KV_full="${KV_FULL}"
- export KV_major="${KV_MAJOR}"
- export KV_minor="${KV_MINOR}"
- export KV_micro="${KV_PATCH}"
-}
-
-is_kernel() {
- get_KV_info
-
- ewarn "QA Notice: Please upgrade your ebuild to use kernel_is()"
- ewarn "QA Notice: from linux-info eclass instead."
-
- if [[ $(type -t kernel_is) == "function" ]] ; then
- kernel_is "$@"
- return $?
- fi
-}
-
-# For stripping binaries, but not drivers or modules.
-# examples:
-# /lib/modules for kernel modules:
-# $1=\/lib\/modules
-# /usr/X11R6/lib/modules for xfree modules:
-# $1=\/usr\/X11R6\/lib\/modules
-strip_bins() {
- einfo "Stripping binaries ..."
- # This bit I got from Redhat ... strip binaries and drivers ..
- # NOTE: We do NOT want to strip the drivers, modules or DRI modules!
- for x in $(find ${D}/ -type f -perm +0111 -exec file {} ';' | \
- grep -v ' shared object,' | \
- sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p')
- do
- if [ -f ${x} ]
- then
- # Dont do the modules ...
- # need the 'eval echo \' to resolve 2-level variables
- if [ "`eval echo \${x/${1}}`" = "${x}" ]
- then
- echo "`echo ${x} | sed -e "s|${D}||"`"
- strip ${x} || :
- fi
- fi
- done
-}
-
-arch() {
- if archq ${1}; then
- echo "${1}"
- return 0
- fi
- return 1
-}
-
-archq() {
- local u="${1}"
- local neg=0
- if [ "${u:0:1}" == "!" ]; then
- u="${u:1}"
- neg=1
- fi
- local x
- for x in ${ARCH}; do
- if [ "${x}" == "${u}" ]; then
- if [ ${neg} -eq 1 ]; then
- return 1
- else
- return 0
- fi
- fi
- done
- if [ ${neg} -eq 1 ]; then
- return 0
- else
- return 1
- fi
-}
-
-# Function to ease the host.def editing and save lines in the ebuild
-use_build() {
- if [ -z "$1" ]; then
- echo "!!! use_build() called without a parameter." >&2
- echo "!!! use_build <USEFLAG> [<flagname> [value]]" >&2
- return
- fi
-
- local UWORD="$2"
- if [ -z "${UWORD}" ]; then
- UWORD="$1"
- echo $UWORD
- fi
-
- if useq $1; then
- echo "#define ${UWORD} YES" >> ${HOSTCONF}
- return 0
- else
- echo "#define ${UWORD} NO" >> ${HOSTCONF}
- return 1
- fi
-}
+# $Header: /var/cvsroot/gentoo-x86/eclass/x11.eclass,v 1.12 2009/11/30 04:19:36 abcd Exp $
+# @DEAD
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/xfce4.eclass b/eclass/xfce4.eclass
index e2a371ee268c..8b2da2a0a831 100644
--- a/eclass/xfce4.eclass
+++ b/eclass/xfce4.eclass
@@ -1,229 +1,15 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xfce4.eclass,v 1.32 2009/09/30 09:22:36 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/xfce4.eclass,v 1.33 2009/11/30 04:19:36 abcd Exp $
-# OBSOLETE ECLASS. Unused and doesn't work. Delete soon as allowed.
+# @DEAD
+# To be removed on 2011/09/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
-# @ECLASS: xfce4.eclass
-# @MAINTAINER:
-# Gentoo's Xfce Team <xfce@gentoo.org>
-# @BLURB: functions to simplify Xfce4 package installation
-# @DESCRIPTION:
-# This eclass provides functions to install Xfce4 packages with a
-# minimum of duplication in ebuilds
-
-inherit fdo-mime gnome2-utils libtool
-[ -n ${XFCE4_PATCHES} ] && inherit eutils
-if [ ${PV} = 9999 ]; then
- inherit autotools
- [ "${XFCE_VCS}" = "git" ] && inherit git || inherit subversion
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-[ ${PV} = 9999 -a -z "${XFCE_VERSION}" ] && XFCE_VERSION="4.6.0"
-[ -z ${XFCE_VERSION} ] && XFCE_VERSION=${PV}
-[ -z ${THUNAR_VERSION} ] && THUNAR_VERSION="0.9"
-
-if [ ${PV} = 9999 ]; then
- [ -n "${WANT_GTKDOCIZE}" ] && DEPEND+=" dev-util/gtk-doc"
- [ ${PN} != xfce4-dev-tools ] && DEPEND+="
- >=dev-util/xfce4-dev-tools-${XFCE_VERSION}"
- [ "${XFCE_VCS}" = "git" ] && \
- EGIT_REPO_URI="git://git.xfce.org/${XFCE_CAT}/${MY_PN:-${PN}}"
-fi
-
-[ -z ${MY_P} ] && MY_P=${MY_PN:-${PN}}-${MY_PV:-${PV}}
-S="${WORKDIR}/${MY_P}"
-
-# @ECLASS-VARIABLE: COMPRESS
-# @DESCRIPTION:
-# Define the file extensions for SRC_URI, defaults to .tar.bz2
-COMPRESS=".tar.bz2"
-
-# @FUNCTION: xfce4_gzipped
-# @DESCRIPTION:
-# Use .tar.gz instead of .tar.bz2 in SRC_URI
-xfce4_gzipped() {
- COMPRESS=".tar.gz"
-}
-
-# @FUNCTION: xfce4_plugin
-# @DESCRIPTION:
-xfce4_plugin() {
- MY_PN="${MY_PN:-${PN}}"
- MY_P="${MY_PN}-${MY_PV:-${PV}}"
- S="${WORKDIR}/${MY_P}"
-}
-
-# @FUNCTION: xfce4_goodies
-# @DESCRIPTION:
-# Change SRC_URI (or E{SVN,GIT}_REPO_URI for live ebuilds) to the goodies path
-# and set HOMEPAGE to goodies.xfce.org
-# Note: git ebuilds usually require XFCE_CAT (for example kelnos for
-# xfce4-notifyd)
-xfce4_goodies() {
- if [ ${PV} = 9999 ]; then
- ESVN_REPO_URI="http://svn.xfce.org/svn/goodies/${MY_PN:-${PN}}/trunk"
- else
- SRC_URI="http://goodies.xfce.org/releases/${MY_PN:-${PN}}/${MY_P}${COMPRESS}"
- fi
- HOMEPAGE="http://goodies.xfce.org/"
-}
-
-# @FUNCTION: xfce4_panel_plugin
-# @DESCRIPTION:
-# Call xfce4_plugin and xfce4_goodies and RDEPEND on xfce4-panel and set
-# HOMEPAGE to the panel plugins homepage
-xfce4_panel_plugin() {
- xfce4_plugin
- xfce4_goodies
- HOMEPAGE="http://goodies.xfce.org/projects/panel-plugins/${MY_PN}"
- RDEPEND="${RDEPEND} >=xfce-base/xfce4-panel-${XFCE_VERSION}"
- DEPEND="${DEPEND} >=xfce-base/xfce4-panel-${XFCE_VERSION}"
-}
-
-# @FUNCTION: xfce4_thunar_plugin
-# @DESCRIPTION:
-# Call xfce4_plugin and xfce4_goodies, RDEPEND on thunar and set
-# HOMEPAGE to the thunar plugins homepage
-xfce4_thunar_plugin() {
- xfce4_plugin
- xfce4_goodies
- HOMEPAGE="http://thunar.xfce.org/pwiki/projects/${MY_PN}"
- RDEPEND="${RDEPEND} >=xfce-base/thunar-${THUNAR_VERSION}"
- DEPEND="${DEPEND} >=xfce-base/thunar-${THUNAR_VERSION}"
-}
-
-# @FUNCTION: xfce4_core
-# @DESCRIPTION:
-# Change SRC_URI (or ESVN_REPO_URI for live ebuilds) to the main Xfce path and
-# set the HOMEPAGE to www.xfce.org
-xfce4_core() {
- if [ ${PV} = 9999 ]; then
- ESVN_REPO_URI="http://svn.xfce.org/svn/xfce/${MY_PN:-${PN}}/trunk"
- else
- SRC_URI="mirror://xfce/xfce-${XFCE_VERSION}/src/${MY_P}${COMPRESS}"
- fi
- HOMEPAGE="http://www.xfce.org/"
-}
-
-# @FUNCTION: xfce4_single_make
-# @DESCRIPTION:
-# Build with one job for broken parallel builds
-xfce4_single_make() {
- JOBS="-j1"
-}
-
-# @FUNCTION: xfce4_src_unpack
-# @DESCRIPTION:
-# Only used for live ebuilds. Patch autogen.sh to inject the correct revision
-# into configure.ac
-xfce4_src_unpack() {
- if [ ${PV} = 9999 ]; then
- local revision
- XFCE_CONFIG+=" --enable-maintainer-mode"
- if [ "${XFCE_VCS}" = "git" ]; then
- git_src_unpack
- revision=$(git show --pretty=format:%ci | head -n 1 | \
- awk '{ gsub("-", "", $1); print $1"-"; }')
- revision+=$(git rev-parse HEAD | cut -c1-8)
- else
- subversion_src_unpack
- subversion_wc_info
- revision=${ESVN_WC_REVISION}
- fi
- local linguas
- [ -d po ] && linguas="$(sed -e '/^#/d' po/LINGUAS)"
- [ -n "${XFCE4_PATCHES}" ] && epatch ${XFCE4_PATCHES}
- if [ -f configure.??.in ]; then
- [ -f configure.ac.in ] && configure=configure.ac.in
- [ -f configure.in.in ] && configure=configure.in.in
- [ -n "${linguas}" ] && sed -i -e "s/@LINGUAS@/${linguas}/g" ${configure}
- sed -i -e "s/@REVISION@/${revision}/g" ${configure}
- cp ${configure} ${configure/.in}
- fi
- if [ -f configure.?? ]; then
- [ -f configure.ac ] && configure=configure.ac
- [ -f configure.in ] && configure=configure.in
- [ ${PN} != xfce4-dev-tools ] && AT_M4DIR="/usr/share/xfce4/dev-tools/m4macros"
- [ -n "${WANT_GTKDOCIZE}" ] && gtkdocize --copy
- if [ -d po ]; then
- grep -Eqs "^(AC|IT)_PROG_INTLTOOL" ${configure} \
- && intltoolize --automake --copy --force \
- || glib-gettextize --copy --force >/dev/null
- fi
- eautoreconf
- fi
- else
- unpack ${A}
- cd "${S}"
- [ -n "${XFCE4_PATCHES}" ] && epatch ${XFCE4_PATCHES}
- elibtoolize
- fi
-}
-
-# @FUNCTION: xfce4_src_configure
-# @DESCRIPTION:
-# Package configuration
-# XFCE_CONFIG is used for additional econf/autogen.sh arguments
-# startup-notification and debug are automatically added when they are found in
-# IUSE
-xfce4_src_configure() {
- has startup-notification ${IUSE} && \
- XFCE_CONFIG+=" $(use_enable startup-notification)"
-
- has debug ${IUSE} && XFCE_CONFIG+=" $(use_enable debug)"
-
- econf ${XFCE_CONFIG}
-}
-
-# @FUNCTION: xfce4_src_compile
-# @DESCRIPTION:
-# Package compilation
-# Calls xfce4_src_configure for EAPI <= 1 and runs emake with ${JOBS}
-xfce4_src_compile() {
- [ "${EAPI}" -le 1 ] && xfce4_src_configure
- emake ${JOBS} || die "emake failed"
-}
-
-# @FUNCTION: xfce4_src_install
-# @DESCRIPTION:
-# Package installation
-# The content of $DOCS is installed via dodoc
-xfce4_src_install() {
- [ -n "${DOCS}" ] && dodoc ${DOCS}
-
- emake DESTDIR="${D}" install || die "emake install failed"
-}
-
-# @FUNCTION: xfce4_pkg_preinst
-# @DESCRIPTION:
-# Run gnome2_icon_savelist for the following gnome2_icon_cache_update
-xfce4_pkg_preinst() {
- gnome2_icon_savelist
-}
-
-# @FUNCTION: xfce4_pkg_postinst
-# @DESCRIPTION:
-# Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update
-xfce4_pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- gnome2_icon_cache_update
-}
-
-# @FUNCTION: xfce4_pkg_postrm
-# @DESCRIPTION:
-# Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update
xfce4_pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
-EXPORT_FUNCTIONS src_unpack src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS pkg_postrm
diff --git a/eclass/xfce42.eclass b/eclass/xfce42.eclass
index 54ce0f9a3eb2..aaf54166fb1f 100644
--- a/eclass/xfce42.eclass
+++ b/eclass/xfce42.eclass
@@ -1,62 +1,7 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xfce42.eclass,v 1.9 2009/09/30 09:22:36 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/xfce42.eclass,v 1.10 2009/11/30 04:19:36 abcd Exp $
-# OBSOLETE ECLASS. Unused and doesn't work. Delete soon as allowed.
-
-COMPRESS=".tar.gz"
-ZIP=""
-INSTALL="make DESTDIR=${D} install"
-XFCE_VERSION="4.2"
-HOMEPAGE=""
-
-bzipped() {
- COMPRESS=".tar.bz2"
- ZIP="-bz2"
-}
-
-plugin() {
- [[ -z ${MY_P} ]] && MY_P="${PN}-plugin-${PV}"
- S="${WORKDIR}/${MY_P}"
- RDEPEND="${RDEPEND}
- =xfce-base/xfce4-panel-${XFCE_VERSION}*
- !>=xfce-base/xfce4-panel-4.3"
-}
-
-goodies() {
- SRC_URI="http://download.berlios.de/xfce-goodies/${MY_P:-${P}}${COMPRESS}"
- [[ -z ${HOMEPAGE} ]] && HOMEPAGE="http://xfce-goodies.berlios.de/"
- S="${WORKDIR}/${MY_P:-${P}}"
-}
-
-goodies_plugin() {
- plugin
- goodies
- S="${WORKDIR}/${MY_P}"
-}
-
-core_package() {
- SRC_URI="http://www.xfce.org/archive/xfce-${PV}/src${ZIP}/${P}${COMPRESS}"
-}
-
-single_make() {
- JOBS=""
-}
-
-want_einstall() {
- INSTALL="true"
-}
-
-LICENSE=""
-SLOT="0"
-IUSE="${IUSE}"
-
-xfce42_src_compile() {
- true
-}
-
-xfce42_src_install() {
- true
-}
-
-EXPORT_FUNCTIONS src_compile src_install
+# @DEAD
+# To be removed on 2011/09/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
diff --git a/eclass/xfce44.eclass b/eclass/xfce44.eclass
index 45ff861a5836..21e046f0d541 100644
--- a/eclass/xfce44.eclass
+++ b/eclass/xfce44.eclass
@@ -1,120 +1,13 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xfce44.eclass,v 1.24 2009/09/30 09:13:19 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/xfce44.eclass,v 1.25 2009/11/30 04:19:36 abcd Exp $
-# OBSOLETE ECLASS. Unused and doesn't work. Delete soon as allowed.
-
-inherit fdo-mime gnome2-utils
-
-LICENSE=""
-SLOT="0"
-IUSE="${IUSE}"
-COMPRESS=".tar.bz2"
-CONFIGURE="econf"
-INSTALL="emake DESTDIR=${D} install"
-XFCE_BETA_VERSION="4.3.99.2"
-XFCE_VERSION="4.4.0"
-THUNAR_BETA_VERSION="0.5.0_rc2"
-THUNAR_VERSION="0.8"
-HOMEPAGE=""
-
-xfce44_beta() {
- XFCE_MASTER_VERSION=${XFCE_BETA_VERSION}
- THUNAR_MASTER_VERSION=${THUNAR_BETA_VERSION}
-}
-
-xfce44() {
- XFCE_MASTER_VERSION=${XFCE_VERSION}
- THUNAR_MASTER_VERSION=${THUNAR_VERSION}
-}
-
-xfce44_gzipped() {
- COMPRESS=".tar.gz"
-}
-
-xfce44_zipped() {
- COMPRESS=".zip"
-}
-
-xfce44_plugin() {
- [[ -z ${MY_PN} ]] && MY_PN="${PN}-plugin"
- [[ -z ${MY_P} ]] && MY_P="${MY_PN}-${PV}"
- S="${WORKDIR}/${MY_P}"
- [[ -z ${XFCE_MASTER_VERSION} ]] && XFCE_MASTER_VERSION=${XFCE_VERSION}
- [[ -z ${THUNAR_MASTER_VERSION} ]] && THUNAR_MASTER_VERSION=${THUNAR_VERSION}
-}
-
-xfce44_panel_plugin() {
- xfce44_plugin
-}
-
-xfce44_thunar_plugin() {
- xfce44_plugin
-}
-
-xfce44_goodies() {
- S="${WORKDIR}/${MY_P:-${P}}"
- SRC_URI="http://goodies.xfce.org/releases/${MY_PN:-${PN}}/${MY_P:-${P}}${COMPRESS}"
-}
-
-xfce44_goodies_panel_plugin() {
- xfce44_panel_plugin
- xfce44_goodies
-}
-
-xfce44_goodies_thunar_plugin() {
- xfce44_thunar_plugin
- xfce44_goodies
-}
-
-xfce44_core_package() {
- SRC_URI="http://www.xfce.org/archive/xfce-${XFCE_MASTER_VERSION}/src/${P}${COMPRESS}"
-}
-
-xfce44_extra_package() {
- [[ -z ${MY_P} ]] && MY_P=${P}
- SRC_URI="http://www.xfce.org/archive/xfce-${XFCE_MASTER_VERSION}/src/${MY_P}${COMPRESS}"
-}
-
-xfce44_single_make() {
- JOBS=""
-}
-
-xfce44_want_einstall() {
- INSTALL="true"
-}
-
-xfce44_src_compile() {
- if has doc ${IUSE}; then
- XFCE_CONFIG="${XFCE_CONFIG} $(use_enable doc gtk-doc)"
- fi
-
- if has startup-notification ${IUSE}; then
- XFCE_CONFIG="${XFCE_CONFIG} $(use_enable startup-notification)"
- fi
-
- if has debug ${IUSE}; then
- XFCE_CONFIG="${XFCE_CONFIG} $(use_enable debug)"
- fi
- ${CONFIGURE} ${XFCE_CONFIG}
- emake ${JOBS}
-}
-
-xfce44_src_install() {
- [[ -n "${DOCS}" ]] && dodoc ${DOCS}
- ${INSTALL} ${JOBS}
-}
-
-xfce44_pkg_preinst() {
- true
-}
-
-xfce44_pkg_postinst() {
- true
-}
+# @DEAD
+# To be removed on 2011/09/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
xfce44_pkg_postrm() {
- true
+ :
}
-EXPORT_FUNCTIONS src_compile src_install pkg_preinst pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS pkg_postrm
diff --git a/eclass/xfree.eclass b/eclass/xfree.eclass
deleted file mode 100644
index 4200352aafb1..000000000000
--- a/eclass/xfree.eclass
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xfree.eclass,v 1.24 2004/11/24 16:55:51 spyderous Exp $
-#
-# Author: Seemant Kulleen <seemant@gentoo.org>
-#
-# The xfree.eclass is designed to ease the checking functions that are
-# performed in xfree and xfree-drm ebuilds. In the new scheme, a variable
-# called VIDEO_CARDS will be used to indicate which cards a user wishes to
-# build support for. Note, that this variable is only unlocked if the USE
-# variable "expertxfree" is switched on, at least for xfree.
-
-inherit x11
diff --git a/eclass/xmms-plugin.eclass b/eclass/xmms-plugin.eclass
index d65a1a850f7e..9322b0d8e281 100644
--- a/eclass/xmms-plugin.eclass
+++ b/eclass/xmms-plugin.eclass
@@ -1,111 +1,8 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xmms-plugin.eclass,v 1.23 2006/10/14 20:27:21 swegener Exp $
-#
-# Jeremy Huddleston <eradicator@gentoo.org>
-# Luis Medinas <metalgod@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/eclass/xmms-plugin.eclass,v 1.24 2009/11/30 04:19:36 abcd Exp $
-# Usage:
-# This eclass is used to create ebuilds for xmms plugins which are contained
-# within the main xmms tarball. Usage:
-
-# PATCH_VER:
-# M4_VER:
-# GENTOO_URI:
-GENTOO_URI=${GENTOO_URI-"http://dev.gentoo.org/~metalgod/xmms"}
-# Set this variable if you want to use a gentoo specific patchset. This adds
-# ${GENTOO_URI}/xmms-${PV}-gentoo-patches-${PATCH_VER}.tar.bz2 to the SRC_URI
-
-# PLUGIN_PATH:
-# Set this variable to the plugin location you want to build.
-# Example:
-# PLUGIN_PATH="Input/mpg123"
-
-# SONAME:
-# Set this variable to the filename of the plugin that is copied over
-# Example:
-# SONAME="libmpg123.so"
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="Xmms Plugin: ${PN}"
-HOMEPAGE="http://www.xmms.org"
-LICENSE="GPL-2"
-
-SRC_URI="http://www.xmms.org/files/1.2.x/xmms-${PV}.tar.bz2
- ${M4_VER:+${GENTOO_URI}/xmms-${PV}-gentoo-m4-${M4_VER}.tar.bz2}
- ${PATCH_VER:+${GENTOO_URI}/xmms-${PV}-gentoo-patches-${PATCH_VER}.tar.bz2}"
-
-# Set S to something which exists
-S="${WORKDIR}/xmms-${PV}"
-
-RDEPEND="${RDEPEND+${RDEPEND}}${RDEPEND-${DEPEND}}"
-DEPEND="${DEPEND}
- =sys-devel/automake-1.7*
- >=sys-devel/autoconf-2.59
- sys-devel/libtool"
-
-xmms-plugin_src_unpack() {
- if ! has_version '>=media-sound/xmms-1.2.10-r13'; then
- ewarn "You don't have >=media-sound/xmms-1.2.10-r13, so we are using the SDK in"
- ewarn "this package rather that the one installed on your system. It is recommended"
- ewarn "that you cancel this emerge and grab >=media-sound/xmms-1.2.10-r13 first."
- epause 5
- fi
-
- unpack ${A}
-
- cd ${S}
- if [[ -n "${PATCH_VER}" ]]; then
- EPATCH_SUFFIX="patch"
- epatch ${WORKDIR}/patches
- fi
-
- cd ${S}/${PLUGIN_PATH}
- sed -i \
- -e "s:-I\$(top_srcdir)::g" \
- -e "s:\$(top_builddir)/libxmms/libxmms.la:/usr/$(get_libdir)/libxmms.la:g" \
- Makefile.am || die "Failed to edit Makefile.am"
-
- cd ${S}
-
- export WANT_AUTOMAKE=1.7
- export WANT_AUTOCONF=2.5
-
- libtoolize --force --copy || die "libtoolize --force --copy failed"
-
- if [[ -n "${M4_VER}" ]]; then
- rm acinclude.m4
- aclocal -I ${WORKDIR}/m4 || die "aclocal failed"
- else
- aclocal || die "aclocal failed"
- fi
- autoheader || die "autoheader failed"
- automake --gnu --add-missing --include-deps --force-missing --copy || die "automake failed"
-
- cd ${S}/${PLUGIN_PATH}
- if has_version '>=media-sound/xmms-1.2.10-r13'; then
- sed -i -e "s:^DEFAULT_INCLUDES = .*$:DEFAULT_INCLUDES = -I. $(xmms-config --cflags):" \
- Makefile.in || die "Failed to edit Makefile.in"
- fi
-
- cd ${S}
- autoconf || die "autoconf failed"
-}
-
-xmms-plugin_src_compile() {
- filter-flags -fforce-addr -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-
- econf ${myconf}
- cp config.h ${S}/${PLUGIN_PATH}
-
- cd ${S}/${PLUGIN_PATH}
- emake -j1 || die
-}
-
-xmms-plugin_src_install() {
- cd ${S}/${PLUGIN_PATH}
- make DESTDIR="${D}" install || die
-}
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install
+# @DEAD
+# XMMS is no longer in the tree, so there can't be any plugins for it
+# To be removed on 2011/11/30.
+ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"