summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-15 13:08:51 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-15 13:08:51 +0000
commitdaf38047027e6f1da5843396845d752469969dca (patch)
tree363e733e8ab1ef83115ed6f7f903fb72e8ae4c89 /app-misc/pal
parentMigrate to EAPI 2 in order to remove built_with_use calls for bug #261562. (diff)
downloadhistorical-daf38047027e6f1da5843396845d752469969dca.tar.gz
historical-daf38047027e6f1da5843396845d752469969dca.tar.bz2
historical-daf38047027e6f1da5843396845d752469969dca.zip
USE deps instead of built_with_use
Package-Manager: portage-2.2_rc38/cvs/Linux x86_64
Diffstat (limited to 'app-misc/pal')
-rw-r--r--app-misc/pal/pal-0.4.3.ebuild23
1 files changed, 9 insertions, 14 deletions
diff --git a/app-misc/pal/pal-0.4.3.ebuild b/app-misc/pal/pal-0.4.3.ebuild
index 61144f46f570..6b9cdfdb3893 100644
--- a/app-misc/pal/pal-0.4.3.ebuild
+++ b/app-misc/pal/pal-0.4.3.ebuild
@@ -1,7 +1,8 @@
-# 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/app-misc/pal/pal-0.4.3.ebuild,v 1.1 2008/10/05 11:49:51 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/pal/pal-0.4.3.ebuild,v 1.2 2009/08/15 12:58:52 ssuominen Exp $
+EAPI=2
inherit toolchain-funcs eutils
DESCRIPTION="pal command-line calendar program"
@@ -15,27 +16,21 @@ IUSE="nls unicode"
RDEPEND=">=dev-libs/glib-2.0
sys-libs/readline
- sys-libs/ncurses
+ sys-libs/ncurses[unicode?]
nls? ( virtual/libintl )"
-
DEPEND="${RDEPEND}
dev-util/pkgconfig
nls? ( sys-devel/gettext )"
-S="${WORKDIR}/${P}/src"
+S=${WORKDIR}/${P}/src
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PV}-strip.patch
epatch "${FILESDIR}"/${PV}-ldflags.patch
- if use unicode ; then
- if built_with_use sys-libs/ncurses unicode ; then
- sed -i "/^LIBS/s/-lncurses/&w/" "${S}"/Makefile || die
- else
- ewarn "Rebuild sys-libs/ncurses with unicode before you try"
- ewarn "to build app-misc/pal with unicode support!"
- fi
+ if use unicode; then
+ sed -i "/^LIBS/s/-lncurses/&w/" "${S}"/Makefile || die
fi
}
@@ -45,11 +40,11 @@ src_compile() {
}
src_install() {
- make DESTDIR="${D}" install-man install-bin install-share \
+ emake DESTDIR="${D}" install-man install-bin install-share \
|| die "make install failed"
if use nls; then
- make DESTDIR="${D}" install-mo || die "make install-mo failed"
+ emake DESTDIR="${D}" install-mo || die "make install-mo failed"
fi
dodoc "${WORKDIR}"/${P}/{ChangeLog,doc/example.css} || die "dodoc failed"