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