/[gentoo-x86]/app-office/sc/sc-7.16-r1.ebuild
Gentoo

Contents of /app-office/sc/sc-7.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Jun 2 06:57:33 2012 UTC (2 years, 2 months ago) by zmedico
Branch: MAIN
Changes since 1.6: +3 -3 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha108_p30/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/sc/sc-7.16-r1.ebuild,v 1.6 2010/07/03 07:15:19 jlec Exp $
4
5 inherit eutils multilib toolchain-funcs
6
7 DESCRIPTION="sc is a free curses-based spreadsheet program that uses key bindings similar to vi and less."
8 SRC_URI="ftp://ibiblio.org/pub/Linux/apps/financial/spreadsheet/${P}.tar.gz"
9 HOMEPAGE="http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/"
10
11 SLOT="0"
12 LICENSE="public-domain"
13 KEYWORDS="amd64 ppc sparc x86"
14 IUSE=""
15
16 DEPEND=">=sys-libs/ncurses-5.2"
17 RDEPEND="${DEPEND}
18 !dev-lang/stratego
19 !<sci-chemistry/ccp4-apps-6.1.3-r4"
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23
24 sed -i -e "/^prefix=/ s:/usr:${D}/usr:" \
25 -e "/^MANDIR=/ s:${prefix}/man:${prefix}/share/man:" \
26 -e "/^LIBDIR=/ s:${prefix}/lib:${prefix}/$(get_libdir):" \
27 -e "/^CC=/ s:gcc:$(tc-getCC):" \
28 -e "/^CFLAGS/ s:=-DSYSV3 -O2 -pipe:+=-DSYSV3:" \
29 -e "/strip/ s:^:#:g" \
30 Makefile
31
32 epatch "${FILESDIR}"/${P}-amd64.patch
33 epatch "${FILESDIR}"/${P}-lex-syntax.patch
34 }
35
36 src_compile() {
37 # no autoconf
38 emake prefix="${D}"/usr || die "emake failed"
39 }
40
41 src_install () {
42 # yes the makefile is so dumb it can't even make it's own dirs
43 dodir /usr/bin
44 dodir /usr/$(get_libdir)/sc
45 dodir /usr/share/man/man1
46 emake install || die
47
48 sed -i "s:${D}::g" sc.1
49 doman sc.1 psc.1
50
51 dodoc CHANGES README sc.doc psc.doc tutorial.sc
52 dodoc VMS_NOTES ${P}.lsm TODO SC.MACROS
53 }

  ViewVC Help
Powered by ViewVC 1.1.20