diff options
Diffstat (limited to 'dev-lang/lazarus')
-rw-r--r-- | dev-lang/lazarus/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/lazarus/lazarus-1.8.4-r2.ebuild | 106 |
2 files changed, 107 insertions, 0 deletions
diff --git a/dev-lang/lazarus/Manifest b/dev-lang/lazarus/Manifest index b06552ec50ee..32ea545a2f6d 100644 --- a/dev-lang/lazarus/Manifest +++ b/dev-lang/lazarus/Manifest @@ -6,5 +6,6 @@ DIST lazarus-1.8.4.tar.gz 63130653 BLAKE2B f9b2ba9971f1a9a9c3b8d2004bd3516c12db5 EBUILD lazarus-1.0.12.ebuild 2353 BLAKE2B 92b70e8ac8a040c9128547c343fdd0f751b5cb72c6cd59c87724151bec4c8b593ea1a04587784f368d8d16e71f13ea13d7ce2256bbd4a9a6018c6869a04a0524 SHA512 93e90953cd2d4390bb1317c3e15094f8fb11f9e000f37f46a58362a71995c6b37643056c254a05baba3294cd6067b18d2016219ae0dba6bcea4be809dc6090ac EBUILD lazarus-1.6.4.ebuild 2342 BLAKE2B f02a3c7c3a7e28fa754f560003761fb44257a0f49694c45902f134ce5f5322ece0d94633e495ab2547ee064abd4973f8378e61368c316fb0b451b5737f28dc4f SHA512 348abd222125bf2449cd434312209aaf758ca7f0dbd65a66b985e7afc7851ec71494631c0f2f86e39557a26e949c95afe99327cf0b48a363d6eeee26fbf4a294 EBUILD lazarus-1.8.4-r1.ebuild 3052 BLAKE2B 9c7a24d205aaa02aacb3e4b1897517be59451a5153fb789a5b1efbb490053944373248a1eba6de49e4601dd3c94a8b49fc51c312f0670d6de6ce8257eee68dda SHA512 92d017993044ade9135e0a9d8fc8cd60415763df404be1dcaa1788d1ebc500a34f3d2dcee604e91aa863c99f3168cf71160c972f7fbcac00b0cb2bf4d24785ad +EBUILD lazarus-1.8.4-r2.ebuild 3535 BLAKE2B 6c154cbd78bf8167d47e6ed6e43de43b951cf0b388a84b7318268a14a6e99de786a300c51062448184a51ed214da68df620e1d5b41ed5006290d6e75eae1fc6d SHA512 af502f83fc9e3d03bc5888913923208a4b9f35ae52a9270f9b627044620a337f4fc0ba7c6c9ea3e5b93234d2bc8a5856ac3447b5c109052eb3eeba0c40372930 EBUILD lazarus-1.8.4.ebuild 2285 BLAKE2B a04e012ce18d7c8d793043b82bff199c3c558d44e52a64d81037658eb9f19c26d8a15c50f5f0aad54e7285d11b8e5700403b1ab88687ad2c5e85177c1437778d SHA512 642ef819cdc11082b2530b7c06d60be77abdb22008e16b0a45313e4981d3a6b22bd3d7065c951826bd98ce285726ab52178e625d9392e7b273433dfa55499983 MISC metadata.xml 516 BLAKE2B b4023336c3271703bc3912f9ab02eed6b57178d1f468194bdac5ac9b01027c5f7c847e776e9b1048a9ce29a4939055e3c00e289868a740c76bb2b7c0e6ff9085 SHA512 991dd36587eaa2412af0fccac7664c72a1d9153d12b313ae151943d7c66ac095b3d2cbe61fe4d84c4566e196ff11e1c16c6ffe2ab6e00fa40fc2fdfe23cee524 diff --git a/dev-lang/lazarus/lazarus-1.8.4-r2.ebuild b/dev-lang/lazarus/lazarus-1.8.4-r2.ebuild new file mode 100644 index 000000000000..6f45f4efce03 --- /dev/null +++ b/dev-lang/lazarus/lazarus-1.8.4-r2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop + +FPCVER="3.0.4" +PYTHON_HASH="586eec1a5ea609ef9df2bf586be06825d9fbd50f" + +DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi" +HOMEPAGE="https://www.lazarus-ide.org/" +SRC_URI=" + python? ( https://github.com/Alexey-T/Python-for-Lazarus/archive/${PYTHON_HASH}.tar.gz ->\ + ${P}-python.tar.gz ) + https://sourceforge.net/projects/${PN}/files/Lazarus%20Zip%20_%20GZip/Lazarus%20${PV}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1-with-linking-exception" +SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND. +KEYWORDS="~amd64 ~x86" +IUSE="minimal python" + +DEPEND=">=dev-lang/fpc-${FPCVER}[source] + net-misc/rsync + x11-libs/gtk+:2 + >=sys-devel/binutils-2.19.1-r1:=" +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 + sed -i \ + -e "s;SecondaryConfigPath:='/etc/lazarus';SecondaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');g" \ + -e "s;PrimaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');PrimaryConfigPath:='/etc/lazarus';g" \ + ide/include/unix/lazbaseconf.inc \ + || die +} + +src_compile() { + LCL_PLATFORM=gtk2 emake \ + $(usex minimal "" "bigide") \ + -j1 + if use python; then + addpredict ide/exttools.pas + ./lazbuild -B --lazarusdir="." --pcp="../lazarus-package-config" --build-ide= \ + --add-package ../Python-for-Lazarus-${PYTHON_HASH}/python4lazarus/python4lazarus_package.lpk \ + || die + sed -i -e "s:${WORKDIR}/Python-for-Lazarus-${PYTHON_HASH}:/etc/lazarus:g" \ + ../lazarus-package-config/packagefiles.xml \ + ../lazarus-package-config/idemake.cfg \ + ../Python-for-Lazarus-${PYTHON_HASH}/python4lazarus/lib/x86_64-linux/python4lazarus_package.compiled \ + || die + sed -i -e "s:${WORKDIR}/lazarus-package-config:/etc/lazarus:g" \ + ../lazarus-package-config/idemake.cfg \ + || die + 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!" + + dosym ../share/lazarus/startlazarus /usr/bin/startlazarus + dosym ../share/lazarus/startlazarus /usr/bin/lazarus + dosym ../share/lazarus/lazbuild /usr/bin/lazbuild + use minimal || dosym ../share/lazarus/components/chmhelp/lhelp/lhelp /usr/bin/lhelp + dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png + + if use python; then + diropts -m0755 + dodir /etc/lazarus + cp -rf ../lazarus-package-config/* \ + "${ED%/}"/etc/lazarus || die + cp -rf ../Python-for-Lazarus-${PYTHON_HASH}/python4lazarus \ + "${ED%/}"/etc/lazarus || die + fi + + make_desktop_entry startlazarus "Lazarus IDE" "lazarus" +} |