summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-06-04 13:32:47 +0200
committerJeroen Roovers <jer@gentoo.org>2016-06-04 13:33:13 +0200
commite5d64740c7a12799f5b954010a2edaecdd8f9812 (patch)
treef8d2b8b21fb94735a7c3040541e8836f329d5ee7 /app-office/sc/sc-7.16-r2.ebuild
parentdev-libs/distorm64: drop old (diff)
downloadgentoo-e5d64740c7a12799f5b954010a2edaecdd8f9812.tar.gz
gentoo-e5d64740c7a12799f5b954010a2edaecdd8f9812.tar.bz2
gentoo-e5d64740c7a12799f5b954010a2edaecdd8f9812.zip
app-office/sc: Fix various issues
- Remove blocker on removed package dev-lang/stratego - Have description explain the name, move previous content to metadata.xml - Add some missing includes - Initialise one variable (although it strictly isn't needed) Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'app-office/sc/sc-7.16-r2.ebuild')
-rw-r--r--app-office/sc/sc-7.16-r2.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/app-office/sc/sc-7.16-r2.ebuild b/app-office/sc/sc-7.16-r2.ebuild
new file mode 100644
index 000000000000..ae2776cee0db
--- /dev/null
+++ b/app-office/sc/sc-7.16-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Spreadsheet Calculator"
+SRC_URI="ftp://ibiblio.org/pub/Linux/apps/financial/spreadsheet/${P}.tar.gz"
+HOMEPAGE="http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/"
+
+SLOT="0"
+LICENSE="public-domain"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+COMMON_DEPEND="
+ >=sys-libs/ncurses-5.2
+"
+DEPEND="
+ virtual/pkgconfig
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-amd64.patch
+ "${FILESDIR}"/${P}-lex-syntax.patch
+ "${FILESDIR}"/${P}-c.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/^prefix=/ s:/usr:${D}/usr:" \
+ -e "/^MANDIR=/ s:${prefix}/man:${prefix}/share/man:" \
+ -e "/^LIBDIR=/ s:${prefix}/lib:${prefix}/$(get_libdir):" \
+ -e '/^LIB=/s|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses)|g' \
+ -e "/^CC=/ s:gcc:$(tc-getCC):" \
+ -e "/^CFLAGS/ s:=-DSYSV3 -O2 -pipe:+=-DSYSV3:" \
+ -e "/strip/ s:^:#:g" \
+ Makefile || die
+
+ eapply_user
+}
+
+src_compile() {
+ tc-export PKG_CONFIG
+ # no autoconf
+ emake prefix="${D}"/usr
+
+ emake ${PN}.1
+ sed -i -e "s:${D}::g" sc.1 || die
+}
+
+src_install () {
+ dodir /usr/bin
+ dodir /usr/$(get_libdir)/sc
+ dodir /usr/share/man/man1
+
+ emake install
+
+ doman sc.1 psc.1
+
+ dodoc CHANGES README tutorial.sc
+ dodoc VMS_NOTES ${P}.lsm TODO SC.MACROS
+}