blob: 8f127e8d4c590c50daef7cae436840acfa468065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gperiodic/gperiodic-2.0.7.ebuild,v 1.1 2004/12/24 16:39:21 ribosome Exp $
inherit toolchain-funcs
DESCRIPTION="Periodic table application for Linux"
SRC_URI="http://www.acclab.helsinki.fi/~frantz/software/${P}.tar.gz"
HOMEPAGE="http://www.acclab.helsinki.fi/~frantz/software/gperiodic.php"
KEYWORDS="~x86 ~amd64"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls"
DEPEND=">=sys-libs/ncurses-5.2
=x11-libs/gtk+-2*
>=dev-util/pkgconfig-0.12
nls? ( sys-devel/gettext )"
src_compile() {
# The author has removed "unnecessary automake/autoconf setup"
# econf `use_enable nls` || die
# This flag stopped it compiling for me
sed -i -e "s/-DGTK_DISABLE_DEPRECATED/${CFLAGS}/" Makefile
sed -i -e "/make clean/d" Makefile
sed -i -e "s/CC=gcc/CC=$(tc-getCC)/" Makefile
if ! use nls; then
sed -i -e "/make -C po/d" Makefile
fi
emake || die "emake failed!"
}
src_install() {
sed -i -e "s|/usr/bin|${D}/usr/bin|" Makefile
sed -i -e "s|/usr/share|${D}/usr/share|" Makefile
sed -i -e "s|/usr/share|${D}/usr/share|" po/Makefile
# Create directories - Makefile is quite broken.
dodir /usr/bin
dodir /usr/share/pixmaps
dodir /usr/share/applications
make install || die "make install failed."
# Fix permissions
chmod 644 ${D}/usr/share/pixmaps/*
chmod 644 ${D}/usr/share/applications/*
# The man page seems to have been removed too.
# doman man/gperiodic.1
dodoc AUTHORS ChangeLog README NEWS
newdoc po/README README.translation
}
|