1 |
commit: ac45bc70f2a217d80f84fa2968fd36a762762c6b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 14 10:48:07 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 14 10:54:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac45bc70 |
7 |
|
8 |
dev-lang/lazarus: add 2.0.12 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/732758 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-lang/lazarus/Manifest | 1 + |
14 |
dev-lang/lazarus/lazarus-2.0.12.ebuild | 83 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 84 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/lazarus/Manifest b/dev-lang/lazarus/Manifest |
18 |
index ba749c4d1a8..b71b7407e82 100644 |
19 |
--- a/dev-lang/lazarus/Manifest |
20 |
+++ b/dev-lang/lazarus/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST lazarus-1.8.4-python.tar.gz 1060859 BLAKE2B 4d6f7dc275aacd0f70d9f7c85aba99a7722b02165a5bf287bfeed46f28e3b36c5abeac19bd7c6555250102dce169f7c9c213b634ce1b634c24dadc84171aed10 SHA512 f244b4e86410fdb2ffe8ccba7fcb51c270286172b6102f757118827cac3b652210a625d65dd6c017c1992983527792ed64334291ab0e0b824f187316452c56b5 |
23 |
DIST lazarus-1.8.4.tar.gz 63130653 BLAKE2B f9b2ba9971f1a9a9c3b8d2004bd3516c12db5384bb6243ef275c2fc0d458634fba0c1c23e7ecd5c160c1204d6cc2b4ebc340ce8bb5cfdd9c531f8c36ae59d1e2 SHA512 82cdc3c32dddf8e67c0bed9292a9a924227bab50f22ca479f5e98ecccbf60dd66c7f886ecb8e2979d9d8fccc3d25462ee8c55fcab085aa4194b4704660e0b95d |
24 |
+DIST lazarus-2.0.12.tar.gz 69560778 BLAKE2B ff6c9414483b0d50dbbb30c8fbf626c81d9c71ef0329aa1d58b37aa4288a500e1ab55d06bad27f637e3f09b9d062af1896720b9cb7367b092fc872cf613f8a3d SHA512 dfd22b2b96fca9d0f672f03b9120c4294a7e640737a09b26c274d304025c61566a8504a5484638c108e42a322b21992229451d95e38d7e491a1c2f07a663483e |
25 |
DIST lazarus-2.0.6.tar.gz 65558951 BLAKE2B f5289562adcfeab86af074de9fc44d7faf5939655587ea9951559bbefc15ce1730e7b7dafb6ec1d0a11eb0f8f069309b8fa0a305051c5cc9ea0fcf9665e883bc SHA512 cdb4c5861e130c12bf0a4938a73c439f2766a73008678028d7e9c9bcabe7b277e70025a7c720a5c14c157cf0227e0ff629a44cf983537b3afbf341343e816d07 |
26 |
|
27 |
diff --git a/dev-lang/lazarus/lazarus-2.0.12.ebuild b/dev-lang/lazarus/lazarus-2.0.12.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..097c59d0b6f |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/lazarus/lazarus-2.0.12.ebuild |
32 |
@@ -0,0 +1,83 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit desktop |
39 |
+ |
40 |
+# See https://wiki.freepascal.org/Lazarus_2.0_fixes_branch for notes and |
41 |
+# changes in FPCVER. It *does* change between minor versions of lazarus. |
42 |
+FPCVER="3.2.0" |
43 |
+ |
44 |
+DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi" |
45 |
+HOMEPAGE="https://www.lazarus-ide.org/" |
46 |
+SRC_URI="https://sourceforge.net/projects/${PN}/files/Lazarus%20Zip%20_%20GZip/Lazarus%20${PV}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2 LGPL-2.1-with-linking-exception" |
49 |
+SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND. |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="minimal" |
52 |
+ |
53 |
+DEPEND=">=dev-lang/fpc-${FPCVER}[source] |
54 |
+ net-misc/rsync |
55 |
+ x11-libs/gtk+:2 |
56 |
+ >=sys-devel/binutils-2.19.1-r1:=" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+ |
59 |
+RESTRICT="strip" #269221 |
60 |
+ |
61 |
+S="${WORKDIR}/${PN}" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch ) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ # Use default configuration (minus stripping) unless specifically requested otherwise |
68 |
+ if ! test ${PPC_CONFIG_PATH+set} ; then |
69 |
+ local FPCVER=$(fpc -iV) |
70 |
+ export PPC_CONFIG_PATH="${WORKDIR}" |
71 |
+ sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg | |
72 |
+ sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die |
73 |
+ fi |
74 |
+ sed -i \ |
75 |
+ -e "s;SecondaryConfigPath:='/etc/lazarus';SecondaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');g" \ |
76 |
+ -e "s;PrimaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');PrimaryConfigPath:='/etc/lazarus';g" \ |
77 |
+ ide/include/unix/lazbaseconf.inc \ |
78 |
+ || die |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ # TODO: Change to LCL_PLATFORM=qt5? |
83 |
+ # bug #732758 |
84 |
+ LCL_PLATFORM=gtk2 emake \ |
85 |
+ $(usex minimal "" "bigide") \ |
86 |
+ -j1 |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ diropts -m0755 |
91 |
+ dodir /usr/share |
92 |
+ # Using rsync to avoid unnecessary copies and cleaning... |
93 |
+ # Note: *.o and *.ppu are needed |
94 |
+ rsync -a \ |
95 |
+ --exclude="CVS" --exclude=".cvsignore" \ |
96 |
+ --exclude="*.ppw" --exclude="*.ppl" \ |
97 |
+ --exclude="*.ow" --exclude="*.a"\ |
98 |
+ --exclude="*.rst" --exclude=".#*" \ |
99 |
+ --exclude="*.~*" --exclude="*.bak" \ |
100 |
+ --exclude="*.orig" --exclude="*.rej" \ |
101 |
+ --exclude=".xvpics" --exclude="*.compiled" \ |
102 |
+ --exclude="killme*" --exclude=".gdb_hist*" \ |
103 |
+ --exclude="debian" --exclude="COPYING*" \ |
104 |
+ --exclude="*.app" \ |
105 |
+ "${S}" "${ED}"/usr/share \ |
106 |
+ || die "Unable to copy files!" |
107 |
+ |
108 |
+ dosym ../share/lazarus/startlazarus /usr/bin/startlazarus |
109 |
+ dosym ../share/lazarus/startlazarus /usr/bin/lazarus |
110 |
+ dosym ../share/lazarus/lazbuild /usr/bin/lazbuild |
111 |
+ use minimal || dosym ../share/lazarus/components/chmhelp/lhelp/lhelp /usr/bin/lhelp |
112 |
+ dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png |
113 |
+ |
114 |
+ make_desktop_entry startlazarus "Lazarus IDE" "lazarus" |
115 |
+} |