/[gentoo-x86]/app-sci/gperiodic/gperiodic-2.0.7.ebuild
Gentoo

Contents of /app-sci/gperiodic/gperiodic-2.0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Dec 24 16:38:24 2004 UTC (9 years, 3 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Moving to sci-chemistry/gperiodic

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

  ViewVC Help
Powered by ViewVC 1.1.20