You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.3 KiB
70 lines
1.3 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
6 years ago
|
|
||
|
inherit toolchain-funcs
|
||
8 years ago
|
|
||
|
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"
|
||
6 years ago
|
KEYWORDS="amd64 ppc sparc x86"
|
||
8 years ago
|
|
||
|
COMMON_DEPEND="
|
||
3 years ago
|
>=sys-libs/ncurses-5.2:=
|
||
8 years ago
|
"
|
||
|
DEPEND="
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
RDEPEND="
|
||
|
${COMMON_DEPEND}
|
||
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-amd64.patch
|
||
|
"${FILESDIR}"/${P}-lex-syntax.patch
|
||
|
"${FILESDIR}"/${P}-c.patch
|
||
|
"${FILESDIR}"/${P}-printf.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
|
||
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
8 years ago
|
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
|
||
|
}
|