Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/lazarus/
Date: Sat, 25 Apr 2020 13:21:41
Message-Id: 1587820579.ef0418fabdb92ab821f80a552a673b74b862bae4.amynka@gentoo
1 commit: ef0418fabdb92ab821f80a552a673b74b862bae4
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Tue Mar 31 02:53:14 2020 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 25 13:16:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef0418fa
7
8 dev-lang/lazarus: version bump 2.0.6
9
10 and removed broken python USE flag
11 https://github.com/gentoo/gentoo/pull/13744
12
13 Closes: https://bugs.gentoo.org/719142
14 Closes: https://github.com/gentoo/gentoo/pull/15183
15 Package-Manager: Portage-2.3.96, Repoman-2.3.22
16 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
17 Signed-off-by: Amy Liffey <amynka <AT> gentoo.org>
18
19 dev-lang/lazarus/Manifest | 1 +
20 dev-lang/lazarus/lazarus-2.0.6.ebuild | 79 +++++++++++++++++++++++++++++++++++
21 2 files changed, 80 insertions(+)
22
23 diff --git a/dev-lang/lazarus/Manifest b/dev-lang/lazarus/Manifest
24 index bc8f8481aef..bb6f45d3240 100644
25 --- a/dev-lang/lazarus/Manifest
26 +++ b/dev-lang/lazarus/Manifest
27 @@ -3,3 +3,4 @@ DIST lazarus-1.8.4-python.tar.gz 1060859 BLAKE2B 4d6f7dc275aacd0f70d9f7c85aba99a
28 DIST lazarus-1.8.4.tar.gz 63130653 BLAKE2B f9b2ba9971f1a9a9c3b8d2004bd3516c12db5384bb6243ef275c2fc0d458634fba0c1c23e7ecd5c160c1204d6cc2b4ebc340ce8bb5cfdd9c531f8c36ae59d1e2 SHA512 82cdc3c32dddf8e67c0bed9292a9a924227bab50f22ca479f5e98ecccbf60dd66c7f886ecb8e2979d9d8fccc3d25462ee8c55fcab085aa4194b4704660e0b95d
29 DIST lazarus-2.0.2-python.tar.gz 1060859 BLAKE2B 4d6f7dc275aacd0f70d9f7c85aba99a7722b02165a5bf287bfeed46f28e3b36c5abeac19bd7c6555250102dce169f7c9c213b634ce1b634c24dadc84171aed10 SHA512 f244b4e86410fdb2ffe8ccba7fcb51c270286172b6102f757118827cac3b652210a625d65dd6c017c1992983527792ed64334291ab0e0b824f187316452c56b5
30 DIST lazarus-2.0.2.tar.gz 67092332 BLAKE2B 12fdca5b0d7c8bcad4f1c6a70c2ebb1d0974b0884cf89135be069744f01527fcd5b2a4b4c898cb500519ec3518025da453087954722cab43a60c1cdb164371d4 SHA512 0d2bf26afa3128104181fbe57b1adeaba3bb589b0a3b72598507825a3f08201d4480c6cff510a6f866dca4d49417fac3a2f68ca7e58fabe4f4e3bad97323c071
31 +DIST lazarus-2.0.6.tar.gz 65558951 BLAKE2B f5289562adcfeab86af074de9fc44d7faf5939655587ea9951559bbefc15ce1730e7b7dafb6ec1d0a11eb0f8f069309b8fa0a305051c5cc9ea0fcf9665e883bc SHA512 cdb4c5861e130c12bf0a4938a73c439f2766a73008678028d7e9c9bcabe7b277e70025a7c720a5c14c157cf0227e0ff629a44cf983537b3afbf341343e816d07
32
33 diff --git a/dev-lang/lazarus/lazarus-2.0.6.ebuild b/dev-lang/lazarus/lazarus-2.0.6.ebuild
34 new file mode 100644
35 index 00000000000..c471d8be2c3
36 --- /dev/null
37 +++ b/dev-lang/lazarus/lazarus-2.0.6.ebuild
38 @@ -0,0 +1,79 @@
39 +# Copyright 1999-2020 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +inherit desktop
45 +
46 +FPCVER="3.0.4"
47 +
48 +DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi"
49 +HOMEPAGE="https://www.lazarus-ide.org/"
50 +SRC_URI="https://sourceforge.net/projects/${PN}/files/Lazarus%20Zip%20_%20GZip/Lazarus%20${PV}/${P}.tar.gz"
51 +
52 +LICENSE="GPL-2 LGPL-2.1-with-linking-exception"
53 +SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
54 +KEYWORDS="~amd64 ~x86"
55 +IUSE="minimal"
56 +
57 +DEPEND=">=dev-lang/fpc-${FPCVER}[source]
58 + net-misc/rsync
59 + x11-libs/gtk+:2
60 + >=sys-devel/binutils-2.19.1-r1:="
61 +RDEPEND="${DEPEND}"
62 +
63 +RESTRICT="strip" #269221
64 +
65 +S="${WORKDIR}/${PN}"
66 +
67 +PATCHES=( "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch )
68 +
69 +src_prepare() {
70 + default
71 + # Use default configuration (minus stripping) unless specifically requested otherwise
72 + if ! test ${PPC_CONFIG_PATH+set} ; then
73 + local FPCVER=$(fpc -iV)
74 + export PPC_CONFIG_PATH="${WORKDIR}"
75 + sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg |
76 + sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die
77 + fi
78 + sed -i \
79 + -e "s;SecondaryConfigPath:='/etc/lazarus';SecondaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');g" \
80 + -e "s;PrimaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');PrimaryConfigPath:='/etc/lazarus';g" \
81 + ide/include/unix/lazbaseconf.inc \
82 + || die
83 +}
84 +
85 +src_compile() {
86 + LCL_PLATFORM=gtk2 emake \
87 + $(usex minimal "" "bigide") \
88 + -j1
89 +}
90 +
91 +src_install() {
92 + diropts -m0755
93 + dodir /usr/share
94 + # Using rsync to avoid unnecessary copies and cleaning...
95 + # Note: *.o and *.ppu are needed
96 + rsync -a \
97 + --exclude="CVS" --exclude=".cvsignore" \
98 + --exclude="*.ppw" --exclude="*.ppl" \
99 + --exclude="*.ow" --exclude="*.a"\
100 + --exclude="*.rst" --exclude=".#*" \
101 + --exclude="*.~*" --exclude="*.bak" \
102 + --exclude="*.orig" --exclude="*.rej" \
103 + --exclude=".xvpics" --exclude="*.compiled" \
104 + --exclude="killme*" --exclude=".gdb_hist*" \
105 + --exclude="debian" --exclude="COPYING*" \
106 + --exclude="*.app" \
107 + "${S}" "${ED%/}"/usr/share \
108 + || die "Unable to copy files!"
109 +
110 + dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
111 + dosym ../share/lazarus/startlazarus /usr/bin/lazarus
112 + dosym ../share/lazarus/lazbuild /usr/bin/lazbuild
113 + use minimal || dosym ../share/lazarus/components/chmhelp/lhelp/lhelp /usr/bin/lhelp
114 + dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png
115 +
116 + make_desktop_entry startlazarus "Lazarus IDE" "lazarus"
117 +}