summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-04-08 17:47:42 +0000
committerMike Frysinger <vapier@gentoo.org>2008-04-08 17:47:42 +0000
commitd4b36b3e9dd8a2d038bf3070080f2ea2504891ae (patch)
tree56e59e49ce54e0e71e36887d4d19fe6294f48713 /x11-terms
parentold (diff)
downloadgentoo-2-d4b36b3e9dd8a2d038bf3070080f2ea2504891ae.tar.gz
gentoo-2-d4b36b3e9dd8a2d038bf3070080f2ea2504891ae.tar.bz2
gentoo-2-d4b36b3e9dd8a2d038bf3070080f2ea2504891ae.zip
Unify ebuilds and add USE=X check for imlib2 #210653 by Thomas Anderson.
(Portage version: 2.2_pre5)
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/eterm/ChangeLog6
-rw-r--r--x11-terms/eterm/eterm-0.9.4.ebuild47
-rw-r--r--x11-terms/eterm/eterm-9999.ebuild55
3 files changed, 83 insertions, 25 deletions
diff --git a/x11-terms/eterm/ChangeLog b/x11-terms/eterm/ChangeLog
index 2a2e6dd065d9..6e91a732ba7f 100644
--- a/x11-terms/eterm/ChangeLog
+++ b/x11-terms/eterm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-terms/eterm
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/ChangeLog,v 1.52 2008/03/31 05:05:56 ricmm Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/ChangeLog,v 1.53 2008/04/08 17:47:42 vapier Exp $
+
+ 08 Apr 2008; Mike Frysinger <vapier@gentoo.org> eterm-0.9.4.ebuild,
+ eterm-9999.ebuild:
+ Unify ebuilds and add USE=X check for imlib2 #210653 by Thomas Anderson.
31 Mar 2008; <ricmm@gentoo.org> eterm-0.9.3-r4.ebuild, eterm-0.9.4.ebuild:
Drop to ~mips due to unstable deps
diff --git a/x11-terms/eterm/eterm-0.9.4.ebuild b/x11-terms/eterm/eterm-0.9.4.ebuild
index dc41ace1048f..9a746ef3ff64 100644
--- a/x11-terms/eterm/eterm-0.9.4.ebuild
+++ b/x11-terms/eterm/eterm-0.9.4.ebuild
@@ -1,16 +1,28 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/eterm-0.9.4.ebuild,v 1.16 2008/03/31 05:05:56 ricmm Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/eterm-0.9.4.ebuild,v 1.17 2008/04/08 17:47:42 vapier Exp $
inherit eutils
MY_P=Eterm-${PV}
+
+if [[ ${PV} == "9999" ]] ; then
+ #ECVS_SERVER="cvs.sourceforge.net:/cvsroot/enlightenment"
+ ECVS_SERVER="anoncvs.enlightenment.org:/var/cvs/e"
+ ECVS_MODULE="eterm/Eterm"
+ inherit cvs
+fi
+
DESCRIPTION="A vt102 terminal emulator for X"
HOMEPAGE="http://www.eterm.org/"
-SRC_URI="http://www.eterm.org/download/${MY_P}.tar.gz
- !minimal? ( http://www.eterm.org/download/Eterm-bg-${PV}.tar.gz )
- mirror://sourceforge/eterm/${MY_P}.tar.gz
- !minimal? ( mirror://sourceforge/eterm/Eterm-bg-${PV}.tar.gz )"
+if [[ ${PV} == "9999" ]] ; then
+ SRC_URI=""
+else
+ SRC_URI="http://www.eterm.org/download/${MY_P}.tar.gz
+ !minimal? ( http://www.eterm.org/download/Eterm-bg-${PV}.tar.gz )
+ mirror://sourceforge/eterm/${MY_P}.tar.gz
+ !minimal? ( mirror://sourceforge/eterm/Eterm-bg-${PV}.tar.gz )"
+fi
LICENSE="BSD"
SLOT="0"
@@ -29,12 +41,29 @@ DEPEND="x11-libs/libX11
etwin? ( app-misc/twin )
escreen? ( app-misc/screen )"
-S=${WORKDIR}/${MY_P}
+if [[ ${PV} == "9999" ]] ; then
+ S=${WORKDIR}/${ECVS_MODULE}
+else
+ S=${WORKDIR}/${MY_P}
+fi
+pkg_setup() {
+ if ! built_with_use media-libs/imlib2 X ; then
+ eerror "media-libs/imlib2 was built without X support."
+ eerror "Please add emerge it with USE=X."
+ die "imlib2 needs USE=X"
+ fi
+}
src_unpack() {
- unpack ${MY_P}.tar.gz
- cd "${S}"
- use minimal || unpack Eterm-bg-${PV}.tar.gz
+ if [[ ${PV} == "9999" ]] ; then
+ cvs_src_unpack
+ cd "${S}"
+ NOCONFIGURE=yes ./autogen.sh || die "autogen failed"
+ else
+ unpack ${MY_P}.tar.gz
+ cd "${S}"
+ use minimal || unpack Eterm-bg-${PV}.tar.gz
+ fi
}
src_compile() {
diff --git a/x11-terms/eterm/eterm-9999.ebuild b/x11-terms/eterm/eterm-9999.ebuild
index 982f535a2dcd..3d5dde308f87 100644
--- a/x11-terms/eterm/eterm-9999.ebuild
+++ b/x11-terms/eterm/eterm-9999.ebuild
@@ -1,20 +1,28 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/eterm-9999.ebuild,v 1.10 2007/07/22 05:44:55 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/eterm-9999.ebuild,v 1.11 2008/04/08 17:47:42 vapier Exp $
-#ECVS_SERVER="cvs.sourceforge.net:/cvsroot/enlightenment"
-ECVS_SERVER="anoncvs.enlightenment.org:/var/cvs/e"
-ECVS_MODULE="eterm/Eterm"
-inherit eutils cvs
+inherit eutils
MY_P=Eterm-${PV}
+
+if [[ ${PV} == "9999" ]] ; then
+ #ECVS_SERVER="cvs.sourceforge.net:/cvsroot/enlightenment"
+ ECVS_SERVER="anoncvs.enlightenment.org:/var/cvs/e"
+ ECVS_MODULE="eterm/Eterm"
+ inherit cvs
+fi
+
DESCRIPTION="A vt102 terminal emulator for X"
HOMEPAGE="http://www.eterm.org/"
-SRC_URI=""
-#http://www.eterm.org/download/${MY_P}.tar.gz
-# http://www.eterm.org/download/Eterm-bg-${PV}.tar.gz
-# mirror://sourceforge/eterm/${MY_P}.tar.gz
-# mirror://sourceforge/eterm/Eterm-bg-${PV}.tar.gz"
+if [[ ${PV} == "9999" ]] ; then
+ SRC_URI=""
+else
+ SRC_URI="http://www.eterm.org/download/${MY_P}.tar.gz
+ !minimal? ( http://www.eterm.org/download/Eterm-bg-${PV}.tar.gz )
+ mirror://sourceforge/eterm/${MY_P}.tar.gz
+ !minimal? ( mirror://sourceforge/eterm/Eterm-bg-${PV}.tar.gz )"
+fi
LICENSE="BSD"
SLOT="0"
@@ -33,12 +41,29 @@ DEPEND="x11-libs/libX11
etwin? ( app-misc/twin )
escreen? ( app-misc/screen )"
-S=${WORKDIR}/${ECVS_MODULE}
+if [[ ${PV} == "9999" ]] ; then
+ S=${WORKDIR}/${ECVS_MODULE}
+else
+ S=${WORKDIR}/${MY_P}
+fi
+pkg_setup() {
+ if ! built_with_use media-libs/imlib2 X ; then
+ eerror "media-libs/imlib2 was built without X support."
+ eerror "Please add emerge it with USE=X."
+ die "imlib2 needs USE=X"
+ fi
+}
src_unpack() {
- cvs_src_unpack
- cd "${S}"
- NOCONFIGURE=yes ./autogen.sh || die "autogen failed"
+ if [[ ${PV} == "9999" ]] ; then
+ cvs_src_unpack
+ cd "${S}"
+ NOCONFIGURE=yes ./autogen.sh || die "autogen failed"
+ else
+ unpack ${MY_P}.tar.gz
+ cd "${S}"
+ use minimal || unpack Eterm-bg-${PV}.tar.gz
+ fi
}
src_compile() {