/[gentoo-x86]/sys-libs/slang/slang-2.0.6.ebuild
Gentoo

Diff of /sys-libs/slang/slang-2.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/Attic/slang-2.0.6.ebuild,v 1.1 2006/07/28 00:05:33 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/Attic/slang-2.0.6.ebuild,v 1.2 2006/07/29 10:14:55 flameeyes Exp $
4 4
5inherit eutils 5inherit eutils
6 6
7DESCRIPTION="Console display library used by most text viewer" 7DESCRIPTION="Console display library used by most text viewer"
8HOMEPAGE="http://www.s-lang.org/" 8HOMEPAGE="http://www.s-lang.org/"
24 sed -i \ 24 sed -i \
25 -e '/^SLANG_INST_INC/s/-I@includedir@/-I@SRCDIR@ -I@includedir@/' \ 25 -e '/^SLANG_INST_INC/s/-I@includedir@/-I@SRCDIR@ -I@includedir@/' \
26 -e '/^SLANG_INST_LIB/s/-L@libdir@/-L@OBJDIR@ -L@ELFDIR@ -L@libdir@/' \ 26 -e '/^SLANG_INST_LIB/s/-L@libdir@/-L@OBJDIR@ -L@ELFDIR@ -L@libdir@/' \
27 slsh/Makefile.in || die 27 slsh/Makefile.in || die
28 28
29 epatch "${FILESDIR}"/${PN}-2.0.6-slsh-libs.patch 29 epatch "${FILESDIR}/${PN}-2.0.6-slsh-libs.patch"
30 epatch "${FILESDIR}/${PN}-2.0.6-foreground.patch"
30 31
31 grep -rlZ -- '-lslang\>' "${S}" | xargs -0 sed -i -e 's:-lslang:-lslang-2:g' 32 grep -rlZ -- '-lslang\>' "${S}" | xargs -0 sed -i -e 's:-lslang:-lslang-2:g'
32} 33}
33 34
34src_compile() { 35src_compile() {
40 cd slsh 41 cd slsh
41 emake THIS_LIB="slang-2" slsh || die "make slsh failed" 42 emake THIS_LIB="slang-2" slsh || die "make slsh failed"
42} 43}
43 44
44src_install() { 45src_install() {
45 emake THIS_LIB="slang-2" DESTDIR="${D}" install install-elf || die "make install failed" 46 emake -j1 THIS_LIB="slang-2" DESTDIR="${D}" install install-elf || die "make install failed"
46 47
47 # Move headers around 48 # Move headers around
48 dodir /usr/include/slang-2 49 dodir /usr/include/slang-2
49 mv "${D}"/usr/include/*.h "${D}/usr/include/slang-2" 50 mv "${D}"/usr/include/*.h "${D}/usr/include/slang-2"
50 51

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20