diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2016-08-02 10:20:00 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-08-02 10:20:15 -0400 |
commit | e32382ec2a3ff09bfbf694d204c89ee9a66a6a8f (patch) | |
tree | 46a6557d5e7496d35873aeee312b6abf009e01b0 /app-misc/pal/pal-0.4.3-r2.ebuild | |
parent | dev-perl/Plack: Fence out network IO re bug #527362 (diff) | |
download | gentoo-e32382ec2a3ff09bfbf694d204c89ee9a66a6a8f.tar.gz gentoo-e32382ec2a3ff09bfbf694d204c89ee9a66a6a8f.tar.bz2 gentoo-e32382ec2a3ff09bfbf694d204c89ee9a66a6a8f.zip |
app-misc/pal: new revision fixing -Wformat-security warnings.
Gentoo-Bug: 521104
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-misc/pal/pal-0.4.3-r2.ebuild')
-rw-r--r-- | app-misc/pal/pal-0.4.3-r2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/pal/pal-0.4.3-r2.ebuild b/app-misc/pal/pal-0.4.3-r2.ebuild new file mode 100644 index 000000000000..f3c73091dfc1 --- /dev/null +++ b/app-misc/pal/pal-0.4.3-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit prefix toolchain-funcs + +DESCRIPTION="Command-line calendar program" +HOMEPAGE="http://palcal.sourceforge.net/" +SRC_URI="mirror://sourceforge/palcal/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos" +IUSE="nls" + +RDEPEND=" + >=dev-libs/glib-2.0 + nls? ( virtual/libintl ) + sys-libs/ncurses:0 + sys-libs/readline:0 +" +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PV}-strip.patch + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${P}-pkg_config.patch + "${FILESDIR}"/${P}-prefix.patch + "${FILESDIR}"/fix-Wformat-security-errors.patch +) + +src_prepare() { + default + + cd src || die "failed to change to the src directory" + eprefixify Makefile.defs input.c Makefile + sed -i -e 's/ -o root//g' {.,convert}/Makefile || die + tc-export PKG_CONFIG +} + +src_compile() { + cd src || die "failed to change to the src directory" + emake CC="$(tc-getCC)" OPT="${CFLAGS}" LDOPT="${LDFLAGS}" +} + +src_install() { + dodoc ChangeLog doc/example.css + + cd src || die "failed to change to the src directory" + emake DESTDIR="${D}" install-man install-bin install-share + + if use nls; then + emake DESTDIR="${D}" install-mo + fi +} |