From 2678a0ed8f013bb8d2cf1b841ebdc5f2040c73d8 Mon Sep 17 00:00:00 2001 From: "Denilson (CrazyTB)" Date: Sun, 25 Apr 2010 18:48:24 +0000 Subject: x11-libs/pdcurses: Version bump to 3.4, bug 94414, thanks to binki, chithead, Xarthisius and xmw svn path=/sunrise/; revision=10486 --- x11-libs/pdcurses/pdcurses-3.4.ebuild | 87 +++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 x11-libs/pdcurses/pdcurses-3.4.ebuild (limited to 'x11-libs/pdcurses/pdcurses-3.4.ebuild') diff --git a/x11-libs/pdcurses/pdcurses-3.4.ebuild b/x11-libs/pdcurses/pdcurses-3.4.ebuild new file mode 100644 index 000000000..2c07f0cd5 --- /dev/null +++ b/x11-libs/pdcurses/pdcurses-3.4.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit autotools eutils + +MY_P=${P/pdc/PDC} + +DESCRIPTION="A public domain curses library for DOS, OS/2, Win32, X11" +HOMEPAGE="http://pdcurses.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="MIT public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +# TODO: add SDL support +IUSE="doc examples nextaw Xaw3d" + +RDEPEND="Xaw3d? ( x11-libs/Xaw3d ) + !Xaw3d? ( + nextaw? ( x11-libs/neXtaw ) + !nextaw? ( x11-libs/libXaw ) + )" +DEPEND="${RDEPEND} + x11-proto/xproto" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use nextaw && use Xaw3d ; then + elog "You have both nextaw and Xaw3d USE-flags set, Xaw3d will be used." + fi +} + +src_prepare() { + epatch "${FILESDIR}/${P}-configure.patch" + + # Fixing soname problem + sed -i -e "s/\(\$(LD_RXLIB1)\)/\1 -Wl,-soname,libXcurses.so.${PV%.*}/" \ + x11/Makefile.in || die + + # Fixing absolute symlinks + sed -i -e 's:\(ln -f -s \)$(libdir)/:\1:' \ + Makefile.in || die + + # Fixing tuidemo path + sed -i -e 's:\.\.[/\\]demos[/\\]::' \ + demos/tuidemo.c || die + + # If enabled, uses "manext" to create a 160K doc/PDCurses.txt + if ! use doc ; then + sed -i -e '/cd doc; $(MAKE)/d' \ + Makefile.in || die + fi + + # Removing the $(DEMOS) from all target + if ! use examples ; then + sed -i -e 's/\(^all:[\t a-zA-Z$()]*\) $(DEMOS)/\1/' \ + x11/Makefile.in || die + fi + + eautoreconf +} + +src_configure() { + econf \ + $(use_with nextaw) \ + $(use_with Xaw3d xaw3d) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc HISTORY IMPLEMNT README doc/*.txt || die + + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins demos/*.[ch] || die + + exeinto /usr/share/doc/${PF}/examples + cd "${S}/x11" || die + # Which one is better? + #doins $(sed -e 's/^DEMOS[ \t]*=\(.*\)/\1/p' -e 'd' Makefile.in) + doexe $(sed -n -e 's/^DEMOS[ \t]*=\(.*\)/\1/p' Makefile.in) || die + fi +} -- cgit v1.2.3-65-gdbad