/[gentoo-x86]/net-misc/gip/gip-1.7.0.1.ebuild
Gentoo

Contents of /net-misc/gip/gip-1.7.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Sep 23 08:19:32 2012 UTC (6 years, 11 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #433331

(Portage version: 2.1.11.9/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/net-misc/gip/gip-1.7.0.1.ebuild,v 1.2 2012/09/02 18:15:51 hwoarang Exp $
4
5 EAPI=4
6
7 inherit eutils versionator
8
9 MY_PV="$(replace_version_separator 3 '-')"
10 MY_P="${PN}-${MY_PV}"
11
12 DESCRIPTION="A nice GNOME GUI for making IP address based calculations"
13 HOMEPAGE="http://code.google.com/p/gip/"
14 SRC_URI="
15 http://gip.googlecode.com/files/${MY_P}.tar.gz
16 mirror://debian/pool/main/g/${PN}/${PN}_${MY_PV}-3.debian.tar.gz"
17 #http://ftp.de.debian.org/debian/pool/main/g/gip/gip_1.7.0-1-3.debian.tar.gz
18 #http://dl.debain.org/gip/${MY_P}.tar.gz"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="amd64 x86"
23 IUSE=""
24
25 RDEPEND="dev-cpp/gtkmm:2.4
26 dev-libs/glib:2
27 dev-libs/libsigc++:2"
28 DEPEND="${RDEPEND}
29 dev-util/intltool
30 virtual/pkgconfig"
31
32 S="${WORKDIR}/${MY_P}"
33
34 src_prepare() {
35 epatch \
36 "${WORKDIR}"/debian/patches/*.diff \
37 "${FILESDIR}"/${P}-asneeded.patch
38
39 sed \
40 -e "s:g++:$(tc-getCXX):g" \
41 -i installer/build_files.sh
42
43 # sed \
44 # -e 's:CFLAGS=":CFLAGS+=" :g' \
45 # -i build.sh || die
46
47 # "${FILESDIR}"/${PN}-1.6.1.1-asneeded.patch
48
49 # "${FILESDIR}/${P}-libsigcpp.patch" \
50 # sed -i -e 's@INST_PIXMAPDIR=\"$INST_PREFIX/lib/$EXECUTABLE\"@INST_PIXMAPDIR=\"/usr/lib/$EXECUTABLE\"@g' build.sh
51 # sed -i -e 's@INST_PIXMAPDIR=\"/usr/lib/$EXECUTABLE\"@INST_PIXMAPDIR=\"$INST_PREFIX/lib/$EXECUTABLE\"@g' build.sh
52 # sed -i -e 's@INST_DOCDIR=\"$INST_PREFIX/doc/$EXECUTABLE\"@INST_DOCDIR=\"$INST_PREFIX/share/doc/'${PF}'\"@g' build.sh
53 }
54
55 src_compile() {
56 # Crazy build system...
57 export CXXFLAGS="${CXXFLAGS}"
58 ./build.sh --prefix "${D}/usr" || die "./build failed"
59 }
60
61 src_install() {
62 dodoc AUTHORS ChangeLog README
63 # Crazy build system...
64 ./build.sh --install --prefix "${D}/usr" || die "./build --install failed"
65 make_desktop_entry gip "GIP IP Address Calculator" gnome-calc3 Network
66 }

  ViewVC Help
Powered by ViewVC 1.1.20