diff options
author | 2004-06-06 16:52:12 +0000 | |
---|---|---|
committer | 2004-06-06 16:52:12 +0000 | |
commit | 38ddedafc97bc576ae4d7a6a3b00b178939fab98 (patch) | |
tree | 390abcc5ba122fc65ebe4f74a5a47641fa1f9b22 /sys-libs/slang/slang-1.4.9-r1.ebuild | |
parent | stable on amd64 (Manifest recommit) (diff) | |
download | gentoo-2-38ddedafc97bc576ae4d7a6a3b00b178939fab98.tar.gz gentoo-2-38ddedafc97bc576ae4d7a6a3b00b178939fab98.tar.bz2 gentoo-2-38ddedafc97bc576ae4d7a6a3b00b178939fab98.zip |
Added unicode patches. Thanks to Alexander Darovsky <adarovsky@users.sf.net> and Stanislav Karchebny <berk@inbox.ru>, see bug #47675 and #52846.
Diffstat (limited to 'sys-libs/slang/slang-1.4.9-r1.ebuild')
-rw-r--r-- | sys-libs/slang/slang-1.4.9-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sys-libs/slang/slang-1.4.9-r1.ebuild b/sys-libs/slang/slang-1.4.9-r1.ebuild new file mode 100644 index 000000000000..8d2a2a38b827 --- /dev/null +++ b/sys-libs/slang/slang-1.4.9-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-1.4.9-r1.ebuild,v 1.1 2004/06/06 16:52:12 usata Exp $ + +inherit gcc eutils + +DESCRIPTION="Console display library used by most text viewer" +HOMEPAGE="http://space.mit.edu/~davis/slang/" +# Patches are taken from http://www.suse.de/~nadvornik/slang/ +# They were originally Red Hat and Debian's patches +SRC_URI="ftp://space.mit.edu/pub/davis/slang/v1.4/${P}.tar.bz2" + +LICENSE="GPL-2 | Artistic" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~amd64 ~ia64 ~ppc64 ~s390" +IUSE="cjk unicode" + +DEPEND=">=sys-libs/ncurses-5.2-r2" + +src_unpack() { + unpack ${P}.tar.bz2 + cd ${S} + + epatch ${FILESDIR}/${P}.dif + epatch ${FILESDIR}/${P}-fsuid.dif + epatch ${FILESDIR}/${P}-autoconf.dif + if use unicode ; then + epatch ${FILESDIR}/slang-debian-utf8.patch + epatch ${FILESDIR}/slang-utf8-acs.patch + epatch ${FILESDIR}/slang-utf8-fix.patch + fi + if use cjk ; then + # enable Kanji Support + cp src/sl-feat.h src/sl-feat.h.bak + sed "/SLANG_HAS_KANJI_SUPPORT/s/0/1/" \ + src/sl-feat.h.bak > src/sl-feat.h + fi +} + +src_compile() { + econf || die "econf failed" + # emake doesn't work well with slang, so just use normal make. + make all elf || die "make failed" +} + +src_install() { + make install install-elf DESTDIR=${D} || die "make install failed" + fperms 755 /usr/lib/libslang.so.* + + if use unicode ; then + for i in ${D}/usr/lib/libslang-utf8* ; do + local libslang=${i/${D}/} + dosym ${libslang} ${libslang/-utf8/} + done + dosym /usr/lib/libslang{-utf8,}.a + fi + + # remove the documentation... we want to install it ourselves + rm -rf ${D}/usr/doc + dodoc COPYING* NEWS README *.txt + dodoc doc/*.txt doc/internal/*.txt doc/text/*.txt + dohtml doc/*.html +} |