Mercurial > hg > portage
annotate dev-lang/lazarus/lazarus-2.2.4.ebuild @ 561:d8cdda1e208e
most recent version of lazarus IDE
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Sat, 01 Oct 2022 17:08:33 +0200 |
parents | |
children |
rev | line source |
---|---|
561
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
1 # Copyright 1999-2022 Gentoo Authors |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
3 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
4 EAPI=8 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
5 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
6 inherit desktop |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
7 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
8 # See https://wiki.freepascal.org/Lazarus_2.0_fixes_branch for notes and |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
9 # changes in FPCVER. It *does* change between minor versions of lazarus. |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
10 FPCVER="3.2.2" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
11 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
12 DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
13 HOMEPAGE="https://www.lazarus-ide.org/" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
14 SRC_URI="https://sourceforge.net/projects/${PN}/files/Lazarus%20Zip%20_%20GZip/Lazarus%20${PV}/${P}-0.tar.gz" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
15 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
16 LICENSE="GPL-2 LGPL-2.1-with-linking-exception" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
17 SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND. |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
18 KEYWORDS="~amd64 ~x86" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
19 IUSE="minimal" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
20 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
21 DEPEND=">=dev-lang/fpc-${FPCVER}[source] |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
22 net-misc/rsync |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
23 x11-libs/gtk+:2 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
24 >=sys-devel/binutils-2.19.1-r1:=" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
25 RDEPEND="${DEPEND}" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
26 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
27 RESTRICT="strip" #269221 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
28 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
29 S="${WORKDIR}/${PN}" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
30 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
31 PATCHES=( "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch ) |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
32 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
33 src_prepare() { |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
34 default |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
35 # Use default configuration (minus stripping) unless specifically requested otherwise |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
36 if ! test ${PPC_CONFIG_PATH+set} ; then |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
37 local FPCVER=$(fpc -iV) |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
38 export PPC_CONFIG_PATH="${WORKDIR}" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
39 sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg | |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
40 sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
41 fi |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
42 } |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
43 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
44 src_compile() { |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
45 # TODO: Change to LCL_PLATFORM=qt5? |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
46 # bug #732758 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
47 LCL_PLATFORM=gtk2 emake \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
48 $(usex minimal "" "bigide") \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
49 -j1 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
50 } |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
51 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
52 src_install() { |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
53 diropts -m0755 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
54 dodir /usr/share |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
55 # Using rsync to avoid unnecessary copies and cleaning... |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
56 # Note: *.o and *.ppu are needed |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
57 rsync -a \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
58 --exclude="CVS" --exclude=".cvsignore" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
59 --exclude="*.ppw" --exclude="*.ppl" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
60 --exclude="*.ow" --exclude="*.a"\ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
61 --exclude="*.rst" --exclude=".#*" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
62 --exclude="*.~*" --exclude="*.bak" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
63 --exclude="*.orig" --exclude="*.rej" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
64 --exclude=".xvpics" --exclude="*.compiled" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
65 --exclude="killme*" --exclude=".gdb_hist*" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
66 --exclude="debian" --exclude="COPYING*" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
67 --exclude="*.app" \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
68 "${S}" "${ED}"/usr/share \ |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
69 || die "Unable to copy files!" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
70 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
71 dosym ../share/lazarus/startlazarus /usr/bin/startlazarus |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
72 dosym ../share/lazarus/startlazarus /usr/bin/lazarus |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
73 dosym ../share/lazarus/lazbuild /usr/bin/lazbuild |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
74 use minimal || dosym ../share/lazarus/components/chmhelp/lhelp/lhelp /usr/bin/lhelp |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
75 dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
76 |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
77 make_desktop_entry startlazarus "Lazarus IDE" "lazarus" |
d8cdda1e208e
most recent version of lazarus IDE
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
78 } |