summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/slang/slang-2.1.3.ebuild')
-rw-r--r--sys-libs/slang/slang-2.1.3.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-libs/slang/slang-2.1.3.ebuild b/sys-libs/slang/slang-2.1.3.ebuild
new file mode 100644
index 000000000000..0e0c5ecd96f7
--- /dev/null
+++ b/sys-libs/slang/slang-2.1.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.1.3.ebuild,v 1.1 2008/02/09 05:38:40 drac Exp $
+
+inherit eutils
+
+DESCRIPTION="Console display library used by most text viewer"
+HOMEPAGE="http://www.s-lang.org"
+SRC_URI="ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${PV%.*}/${P}.tar.bz2
+ ftp://space.mit.edu/pub/davis/slang/v${PV%.*}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="pcre png"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r2
+ pcre? ( dev-libs/libpcre )
+ png? ( media-libs/libpng )"
+DEPEND="${RDEPEND}
+ !=sys-libs/slang-2.1.2"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-2.1.2-slsh-libs.patch
+}
+
+src_compile() {
+ econf $(use_with pcre) $(use_with png)
+ emake all || die "emake all failed."
+ cd slsh
+ emake slsh || die "emake slsh failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install-static || die "emake install failed."
+
+ rm -rf "${D}"/usr/share/doc/{slang,slsh}
+
+ dodoc NEWS README *.txt
+ dodoc doc/*.txt doc/internal/*.txt doc/text/*.txt
+ dohtml doc/slangdoc.html slsh/doc/html/*.html
+}