public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Amy Liffey" <amynka@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/lazarus/
Date: Mon, 12 Dec 2022 18:40:37 +0000 (UTC)	[thread overview]
Message-ID: <1670870399.e9c183aa7b01e8a994bc18ebb3a0d4b74402b45b.amynka@gentoo> (raw)

commit:     e9c183aa7b01e8a994bc18ebb3a0d4b74402b45b
Author:     Michael Corvinus <voron1 <AT> gmail <DOT> com>
AuthorDate: Mon Dec 12 14:49:41 2022 +0000
Commit:     Amy Liffey <amynka <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 18:39:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c183aa

dev-lang/lazarus: add 2.2.4

Make GUI optional, switch to Qt5.

Closes: https://github.com/gentoo/gentoo/pull/28622
Closes: https://bugs.gentoo.org/818142
Closes: https://bugs.gentoo.org/885283

Signed-off-by: Amy Liffey <amynka <AT> gentoo.org>
Signed-off-by: Michael Corvinus <voron1 <AT> gmail.com>

 dev-lang/lazarus/Manifest             |  1 +
 dev-lang/lazarus/lazarus-2.2.4.ebuild | 91 +++++++++++++++++++++++++++++++++++
 dev-lang/lazarus/metadata.xml         | 11 +++++
 3 files changed, 103 insertions(+)

diff --git a/dev-lang/lazarus/Manifest b/dev-lang/lazarus/Manifest
index 52f9514f5fb0..472e3d95c033 100644
--- a/dev-lang/lazarus/Manifest
+++ b/dev-lang/lazarus/Manifest
@@ -1,2 +1,3 @@
 DIST lazarus-2.0.12.tar.gz 69560778 BLAKE2B ff6c9414483b0d50dbbb30c8fbf626c81d9c71ef0329aa1d58b37aa4288a500e1ab55d06bad27f637e3f09b9d062af1896720b9cb7367b092fc872cf613f8a3d SHA512 dfd22b2b96fca9d0f672f03b9120c4294a7e640737a09b26c274d304025c61566a8504a5484638c108e42a322b21992229451d95e38d7e491a1c2f07a663483e
 DIST lazarus-2.2.0-0.tar.gz 76777421 BLAKE2B 29a7ed3285e3fbb6f72fe932d72d71edfd6903a8a5eb24f9534a12a4d1ccf5e40c61ce3cc1cbd8eef6dd7700f6e29fb640e35510b23a1ca1b02f7df0a4a738cc SHA512 4ebd8b4b7c6dfea491a30b1253e604646109d208c237e59be2fd9f6be3fb1e29443dd4e482076d77100678d0e4085b998398fca0532aa6122b59db7157af0ce4
+DIST lazarus-2.2.4-0.tar.gz 77272959 BLAKE2B 2d7b2872a7399eb1a3a7d9fb20fed209900603ae433db75ac2c4244edf5e5981314ed3d8e39143ff30764e7ccbf1286edace9c38505df1cd28b44250bdd07224 SHA512 1a2fbc8451f1954df1d0071c586662ebc3cd0e9a7db5d910e0af86a3095252a5796d4c7abcf3861ad723af26974ac416c5bf919cd77ad5f406295ad7cdf47eb1

diff --git a/dev-lang/lazarus/lazarus-2.2.4.ebuild b/dev-lang/lazarus/lazarus-2.2.4.ebuild
new file mode 100644
index 000000000000..2f36b89e352c
--- /dev/null
+++ b/dev-lang/lazarus/lazarus-2.2.4.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop
+
+# See https://wiki.freepascal.org/Lazarus_2.0_fixes_branch for notes and
+# changes in FPCVER. It *does* change between minor versions of lazarus.
+FPCVER="3.2.2"
+
+DESCRIPTION="feature rich visual programming environment emulating Delphi"
+HOMEPAGE="https://www.lazarus-ide.org/"
+SRC_URI="mirror://sourceforge/lazarus/${P}-0.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1-with-linking-exception"
+SLOT="0/2.2" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk2 +gui extras"
+REQUIRED_USE="gtk2? ( gui ) extras? ( gui )"
+
+DEPEND="
+	>=dev-lang/fpc-${FPCVER}[source]
+	>=sys-devel/binutils-2.19.1-r1:=
+	gui? (
+	    !gtk2? ( dev-libs/libqt5pas:0/2.2 )
+	    gtk2? ( x11-libs/gtk+:2 )
+)"
+BDEPEND="net-misc/rsync"
+RDEPEND="${DEPEND}"
+
+RESTRICT="strip" #269221
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch )
+
+src_prepare() {
+	default
+	# Use default configuration (minus stripping) unless specifically requested otherwise
+	if ! test ${PPC_CONFIG_PATH+set} ; then
+		local FPCVER=$(fpc -iV)
+		export PPC_CONFIG_PATH="${WORKDIR}"
+		sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg |
+			sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die
+	fi
+}
+
+src_compile() {
+	# TODO: Change to LCL_PLATFORM=qt5?
+	# bug #732758
+	if ( use gui ) && ( use !gtk2 ) ; then
+		export LCL_PLATFORM=qt5
+	fi
+	use gtk2 && export LCL_PLATFORM=gtk2
+	if ( use gui ) ; then
+		emake all $(usex extras "bigide lhelp" "") -j1 || die "make failed!"
+	else
+		emake lazbuild -j1 || die "make failed!"
+	fi
+}
+
+src_install() {
+	diropts -m0755
+	dodir /usr/share
+	# Using rsync to avoid unnecessary copies and cleaning...
+	# Note: *.o and *.ppu are needed
+	rsync -a \
+		--exclude="CVS"     --exclude=".cvsignore" \
+		--exclude="*.ppw"   --exclude="*.ppl" \
+		--exclude="*.ow"    --exclude="*.a"\
+		--exclude="*.rst"   --exclude=".#*" \
+		--exclude="*.~*"    --exclude="*.bak" \
+		--exclude="*.orig"  --exclude="*.rej" \
+		--exclude=".xvpics" --exclude="*.compiled" \
+		--exclude="killme*" --exclude=".gdb_hist*" \
+		--exclude="debian"  --exclude="COPYING*" \
+		--exclude="*.app" \
+		"${S}" "${ED}"/usr/share \
+		|| die "Unable to copy files!"
+
+	if ( use gui ) ; then
+		dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
+		dosym ../share/lazarus/startlazarus /usr/bin/lazarus
+	fi
+	dosym ../share/lazarus/lazbuild /usr/bin/lazbuild
+	use extras && dosym ../share/lazarus/components/chmhelp/lhelp/lhelp /usr/bin/lhelp
+	dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png
+
+	use gui && make_desktop_entry startlazarus "Lazarus IDE" "lazarus"
+}

diff --git a/dev-lang/lazarus/metadata.xml b/dev-lang/lazarus/metadata.xml
index 3cb7a52b758a..e7fb1364df58 100644
--- a/dev-lang/lazarus/metadata.xml
+++ b/dev-lang/lazarus/metadata.xml
@@ -4,8 +4,19 @@
 	<maintainer type="person">
 		<email>amynka@gentoo.org</email>
 	</maintainer>
+	<maintainer type="person" proxied="yes">
+		<email>voron1@gmail.com</email>
+		<name>Michael Corvinus</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
 	<use>
 		<flag name="minimal">Don't build extra packages from the bigide component</flag>
+		<flag name="gui">Build GUI IDE.</flag>
+		<flag name="gtk2">Use gtk:2 for widgets.</flag>
+		<flag name="extras">Build a lot of extra packages, including lhelp chm viewer program.</flag>
 	</use>
 	<upstream>
 		<remote-id type="sourceforge">downloads</remote-id>


             reply	other threads:[~2022-12-12 18:40 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 18:40 Amy Liffey [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-02 20:15 [gentoo-commits] repo/gentoo:master commit in: dev-lang/lazarus/ Andreas Sturmlechner
2024-10-25 23:44 Sam James
2024-06-14  9:37 Sam James
2024-06-14  9:33 Sam James
2024-06-14  7:34 Sam James
2024-06-14  7:33 Sam James
2024-06-14  7:33 Sam James
2024-06-09 16:13 Sam James
2023-01-11  9:41 Amy Liffey
2023-01-11  9:41 Amy Liffey
2022-12-13  9:10 Amy Liffey
2022-02-02 14:46 Amy Liffey
2022-01-15 14:15 Andreas Sturmlechner
2021-10-16  7:11 Agostino Sarubbo
2021-10-16  7:10 Agostino Sarubbo
2021-10-14 10:54 Sam James
2021-04-25 18:06 Andreas Sturmlechner
2020-04-25 18:54 Amy Liffey
2020-04-25 13:16 Amy Liffey
2020-04-25 13:16 Amy Liffey
2020-01-17 10:30 Agostino Sarubbo
2020-01-14 16:14 Agostino Sarubbo
2019-07-14 18:51 Amy Liffey
2019-07-14 18:51 Amy Liffey
2018-09-23 15:24 Amy Liffey
2018-09-20 13:25 Amy Liffey
2018-09-20 13:25 Amy Liffey
2018-05-27  9:38 Amy Liffey
2018-05-19  8:28 Amy Liffey
2018-03-17  6:45 Matt Turner
2018-01-21 14:22 Amy Liffey
2017-10-03 19:01 Amy Liffey
2017-08-11 20:14 Amy Liffey
2017-03-26 16:05 Amy Liffey
2016-12-11  9:52 Amy Winston
2016-03-14 12:57 Amy Winston
2016-02-21 21:25 Amy Winston
2016-02-21 21:25 Amy Winston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1670870399.e9c183aa7b01e8a994bc18ebb3a0d4b74402b45b.amynka@gentoo \
    --to=amynka@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox