summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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"