Gentoo Archives: gentoo-commits

From: "Harald van Dijk (truedfx)" <truedfx@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/lazarus: ChangeLog lazarus-0.9.24.ebuild
Date: Sat, 08 Dec 2007 00:11:28
Message-Id: E1J0nHv-0008Fq-FL@stork.gentoo.org
1 truedfx 07/12/08 00:11:23
2
3 Modified: ChangeLog
4 Added: lazarus-0.9.24.ebuild
5 Log:
6 Version bump (#201576)
7 (Portage version: 2.1.4_rc8)
8
9 Revision Changes Path
10 1.18 dev-lang/lazarus/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lazarus/ChangeLog?rev=1.18&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lazarus/ChangeLog?rev=1.18&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lazarus/ChangeLog?r1=1.17&r2=1.18
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v
19 retrieving revision 1.17
20 retrieving revision 1.18
21 diff -u -r1.17 -r1.18
22 --- ChangeLog 1 Jul 2007 00:11:17 -0000 1.17
23 +++ ChangeLog 8 Dec 2007 00:11:23 -0000 1.18
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/lazarus
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.17 2007/07/01 00:11:17 truedfx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.18 2007/12/08 00:11:23 truedfx Exp $
29 +
30 +*lazarus-0.9.24 (08 Dec 2007)
31 +
32 + 08 Dec 2007; Harald van Dijk <truedfx@g.o> +lazarus-0.9.24.ebuild:
33 + Version bump (#201576)
34
35 01 Jul 2007; Harald van Dijk <truedfx@g.o>
36 lazarus-0.9.22-r1.ebuild:
37
38
39
40 1.1 dev-lang/lazarus/lazarus-0.9.24.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lazarus/lazarus-0.9.24.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lazarus/lazarus-0.9.24.ebuild?rev=1.1&content-type=text/plain
44
45 Index: lazarus-0.9.24.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.24.ebuild,v 1.1 2007/12/08 00:11:23 truedfx Exp $
50
51 inherit eutils
52
53 # bug #183604
54 RESTRICT="strip"
55
56 FPCVER="2.2.0"
57
58 SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
59 LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-linking-exception"
60 KEYWORDS="~amd64 ~ppc ~x86"
61 DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi."
62 HOMEPAGE="http://www.lazarus.freepascal.org/"
63 IUSE=""
64 SRC_URI="mirror://sourceforge/lazarus/${P}-0.tar.gz"
65
66 DEPEND="~dev-lang/fpc-${FPCVER}
67 net-misc/rsync
68 >=x11-libs/gtk+-2.0"
69 RDEPEND="${DEPEND}
70 !=gnome-base/librsvg-2.16.1"
71
72 S=${WORKDIR}/${PN}
73
74 pkg_setup() {
75 if ! built_with_use "dev-lang/fpc" source; then
76 eerror "You need to build dev-lang/fpc with the 'source' USE flag"
77 eerror "in order for lazarus to work properly."
78 die "lazarus needs fpc built with the 'source' USE to work."
79 fi
80 }
81
82 src_unpack() {
83 # check for broken fpc.cfg
84 # don't check in pkg_setup since it won't harm binpkgs
85 if grep -q '^[ ]*-Fu.*/lcl$' /etc/fpc.cfg
86 then
87 eerror "Your /etc/fpc.cfg automatically adds a LCL directory"
88 eerror "to the list of unit directories. This will break the"
89 eerror "build of lazarus."
90 die "don't set the LCL path in /etc/fpc.cfg"
91 fi
92
93 unpack ${A}
94 sed -e "s/@FPCVER@/${FPCVER}/" "${FILESDIR}"/${PN}-0.9.20-fpcsrc.patch \
95 > "${T}"/fpcsrc.patch || die "could not sed fpcsrc patch"
96
97 cd "${S}"
98 epatch "${T}"/fpcsrc.patch
99 }
100
101 src_compile() {
102 LCL_PLATFORM=gtk2 emake -j1 || die "make failed!"
103 }
104
105 src_install() {
106 diropts -m0755
107 dodir /usr/share
108 # Using rsync to avoid unnecessary copies and cleaning...
109 # Note: *.o and *.ppu are needed
110 rsync -a \
111 --exclude="CVS" --exclude=".cvsignore" \
112 --exclude="*.ppw" --exclude="*.ppl" \
113 --exclude="*.ow" --exclude="*.a"\
114 --exclude="*.rst" --exclude=".#*" \
115 --exclude="*.~*" --exclude="*.bak" \
116 --exclude="*.orig" --exclude="*.rej" \
117 --exclude=".xvpics" --exclude="*.compiled" \
118 --exclude="killme*" --exclude=".gdb_hist*" \
119 --exclude="debian" --exclude="COPYING*" \
120 --exclude="*.app" \
121 "${S}" "${D}"usr/share \
122 || die "Unable to copy files!"
123
124 dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
125 dosym ../lazarus/images/mainicon.xpm /usr/share/pixmaps/lazarus.xpm
126
127 make_desktop_entry startlazarus "Lazarus IDE" "lazarus.xpm" || die "Failed making desktop entry!"
128 }
129
130
131
132 --
133 gentoo-commits@g.o mailing list