summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2007-04-06 14:03:06 (UTC)
committer Michael Krelin <hacker@klever.net>2007-04-06 14:03:06 (UTC)
commitcd399640d872975ce965ac65e8c681311cf7f4cc (patch) (side-by-side diff)
treedb74e87b6232fe106064de5501b42a340a630d78
parent65cd37d7d8a0840a24f7a5dc2a946c594e56aa50 (diff)
downloadmisc-cd399640d872975ce965ac65e8c681311cf7f4cc.zip
misc-cd399640d872975ce965ac65e8c681311cf7f4cc.tar.gz
misc-cd399640d872975ce965ac65e8c681311cf7f4cc.tar.bz2
dev-lang/lazarus: imported from portage
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--dev-lang/lazarus/ChangeLog65
-rw-r--r--dev-lang/lazarus/Manifest38
-rw-r--r--dev-lang/lazarus/files/digest-lazarus-0.9.20-r13
-rw-r--r--dev-lang/lazarus/files/lazarus-0.9.20-fpcsrc.patch12
-rw-r--r--dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch25
-rw-r--r--dev-lang/lazarus/files/lazarus-0.9.20-lclintf.patch11
-rw-r--r--dev-lang/lazarus/lazarus-0.9.20-r1.ebuild77
-rw-r--r--dev-lang/lazarus/metadata.xml9
-rw-r--r--profiles/categories2
9 files changed, 242 insertions, 0 deletions
diff --git a/dev-lang/lazarus/ChangeLog b/dev-lang/lazarus/ChangeLog
new file mode 100644
index 0000000..75ab424
--- a/dev/null
+++ b/dev-lang/lazarus/ChangeLog
@@ -0,0 +1,65 @@
+# ChangeLog for dev-lang/lazarus
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.13 2007/03/22 20:49:32 truedfx Exp $
+
+ 22 Mar 2007; Harald van Dijk <truedfx@gentoo.org>
+ +files/lazarus-0.9.20-lcl-handle.patch, lazarus-0.9.20-r1.ebuild:
+ Avoid storing pointers in 32-bit variables on amd64
+
+*lazarus-0.9.20-r1 (10 Mar 2007)
+
+ 10 Mar 2007; Harald van Dijk <truedfx@gentoo.org>
+ +files/lazarus-0.9.20-fpcsrc.patch, +files/lazarus-0.9.20-lclintf.patch,
+ -lazarus-0.9.20.ebuild, +lazarus-0.9.20-r1.ebuild:
+ Automatically find fpc source directory, preventing a crash on amd64
+ (#168168). Also, set default LCL interface to gtk2.
+
+ 02 Dec 2006; Harald van Dijk <truedfx@gentoo.org> -lazarus-0.9.10.ebuild,
+ -lazarus-0.9.12.ebuild, -lazarus-0.9.16.ebuild:
+ Remove older versions
+
+ 22 Nov 2006; Harald van Dijk <truedfx@gentoo.org> lazarus-0.9.20.ebuild:
+ Add a warning to change the LCL interface (#155564)
+
+*lazarus-0.9.20 (17 Nov 2006)
+
+ 17 Nov 2006; Hanno Boeck <hanno@gentoo.org> +lazarus-0.9.20.ebuild:
+ Bump and preliminary gtk2 support.
+
+ 28 Sep 2006; Gustavo Zacarias <gustavoz@gentoo.org> lazarus-0.9.16.ebuild:
+ Moved built_with_use to pkg_setup since it's a moot point to use lazarus
+ without the source. Thanks to welp on #gentoo-dev
+
+*lazarus-0.9.16 (22 Sep 2006)
+
+ 22 Sep 2006; Harald van Dijk <truedfx@gentoo.org> +lazarus-0.9.16.ebuild:
+ Version bump
+
+*lazarus-0.9.12 (23 Feb 2006)
+
+ 23 Feb 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ +lazarus-0.9.12.ebuild:
+ New upstream version to match fpc 2.0.2
+
+ 17 Dec 2005; Carsten Lohrke <carlo@gentoo.org> lazarus-0.9.10.ebuild:
+ clean up a bit
+
+ 17 Nov 2005; Herbie Hopkins <herbs@gentoo.org> lazarus-0.9.10.ebuild:
+ Marked ~amd64.
+
+*lazarus-0.9.10 (06 Oct 2005)
+
+ 06 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ +lazarus-0.9.10.ebuild:
+ Revbump for fpc 2.0.0, added ~ppc, solves bugs #103903, #102889, #99480, #90078
+
+ 19 Apr 2005; Elfyn McBratney <beu@gentoo.org> metadata.xml:
+ Remove retired developer from metadata.xml.
+
+*lazarus-0.9.6 (02 Apr 2005)
+
+ 02 Apr 2005; Chris White <chriswhite@gentoo.org> +metadata.xml,
+ +lazarus-0.9.6.ebuild:
+ Initial import into the tree. Closes bug #87486. Thanks to expose for the
+ ebuild!
+
diff --git a/dev-lang/lazarus/Manifest b/dev-lang/lazarus/Manifest
new file mode 100644
index 0000000..fbf89de
--- a/dev/null
+++ b/dev-lang/lazarus/Manifest
@@ -0,0 +1,38 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX lazarus-0.9.20-fpcsrc.patch 333 RMD160 2afa08d4a5e11c38dd3e6b6907c117b00c5b523f SHA1 3e5c47eac41249dd2c78321be6ae9604b8d55931 SHA256 2ebf6b5a9a5ff2746339c2b6bfe4149c663803fa4dfe98408240b33cdf1f544c
+MD5 728fbd094be35bcec4b8e9b83eea9b6a files/lazarus-0.9.20-fpcsrc.patch 333
+RMD160 2afa08d4a5e11c38dd3e6b6907c117b00c5b523f files/lazarus-0.9.20-fpcsrc.patch 333
+SHA256 2ebf6b5a9a5ff2746339c2b6bfe4149c663803fa4dfe98408240b33cdf1f544c files/lazarus-0.9.20-fpcsrc.patch 333
+AUX lazarus-0.9.20-lcl-handle.patch 892 RMD160 96177a04128f2c7946feb320427ba8d2e287c9e7 SHA1 211f7c87bab790da12c3b10c5c4e82a111422172 SHA256 ad1f7bffdecbcc7b599463d4cc41fe20c705f34475d0ddbae8941fad2bf79f0a
+MD5 8bdf8590957bf2a6a8253a3bcb85a4bf files/lazarus-0.9.20-lcl-handle.patch 892
+RMD160 96177a04128f2c7946feb320427ba8d2e287c9e7 files/lazarus-0.9.20-lcl-handle.patch 892
+SHA256 ad1f7bffdecbcc7b599463d4cc41fe20c705f34475d0ddbae8941fad2bf79f0a files/lazarus-0.9.20-lcl-handle.patch 892
+AUX lazarus-0.9.20-lclintf.patch 266 RMD160 0e3e711034be39f7cda9375a5df5b7f0dd150a1c SHA1 4fdedeb7a33588e216367de2d3ad3004b4535f00 SHA256 400c2e5bf2183d2e21a930a752701d62a4d75fc552111cf7a5c366f6e745eee5
+MD5 c24d1e618b5b6d3d1a1948b12d40491c files/lazarus-0.9.20-lclintf.patch 266
+RMD160 0e3e711034be39f7cda9375a5df5b7f0dd150a1c files/lazarus-0.9.20-lclintf.patch 266
+SHA256 400c2e5bf2183d2e21a930a752701d62a4d75fc552111cf7a5c366f6e745eee5 files/lazarus-0.9.20-lclintf.patch 266
+DIST lazarus-0.9.20-0.tar.gz 10241274 RMD160 5a2c061e42306008858cf8b3a51ecaa1aa3f0bca SHA1 6f72cda6ed67d4855118c9147d46ff575232bed1 SHA256 c3416c557e510c9fcca5de59f128854eb5605f69fc7472cea11fc09ed5f8285e
+EBUILD lazarus-0.9.20-r1.ebuild 2442 RMD160 eb446d920764cb288b01b09985ca84c74234e201 SHA1 3cad7e32cd67aa19920d7c0353d506631eedb5e2 SHA256 b26c18c6a3c9579c699c2454867797e3db860c13f61b06fee0e4334842af0c14
+MD5 c5de263ff404148ed4b8cdd609b02d76 lazarus-0.9.20-r1.ebuild 2442
+RMD160 eb446d920764cb288b01b09985ca84c74234e201 lazarus-0.9.20-r1.ebuild 2442
+SHA256 b26c18c6a3c9579c699c2454867797e3db860c13f61b06fee0e4334842af0c14 lazarus-0.9.20-r1.ebuild 2442
+MISC ChangeLog 2315 RMD160 6ee29209987f8d952cb0587ad2a0798e8cf60693 SHA1 002b4ee6b3f8e4b48fa6a77cb25a72d5d45ab788 SHA256 dc35eb0570e5c2e48df29261463e4a1986f6af55eb07862421788e0e4cadfdad
+MD5 95db940b66ec4fbaefb5841f3d676695 ChangeLog 2315
+RMD160 6ee29209987f8d952cb0587ad2a0798e8cf60693 ChangeLog 2315
+SHA256 dc35eb0570e5c2e48df29261463e4a1986f6af55eb07862421788e0e4cadfdad ChangeLog 2315
+MISC metadata.xml 281 RMD160 423ab877620b713044c2d08753af1fa18a3adce4 SHA1 c861318fcfa3725a45dd0deb55fbfc26a49245b6 SHA256 d0d50fc65f6bc2ce65700e4ea995148f15c4e7a0eca5d0f86e3f4b9a73a4aae6
+MD5 8773813255798a06aad7b06e083a1a55 metadata.xml 281
+RMD160 423ab877620b713044c2d08753af1fa18a3adce4 metadata.xml 281
+SHA256 d0d50fc65f6bc2ce65700e4ea995148f15c4e7a0eca5d0f86e3f4b9a73a4aae6 metadata.xml 281
+MD5 84c87b76f87fa0bdfc738b94b819489e files/digest-lazarus-0.9.20-r1 256
+RMD160 e9a791d6655e4d9143e7e71a20dc3b226a99f744 files/digest-lazarus-0.9.20-r1 256
+SHA256 49f58ce799154ff503040c5f74a333cbf4e2b2eac6005a1516a466aa8f597c96 files/digest-lazarus-0.9.20-r1 256
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.3 (GNU/Linux)
+
+iD8DBQFGD5oIwnQyISwouHwRArb3AJ9ZBCa4twuYCzk51ahxiBed9OD7NACfcHRp
+cyflKCqj9+nDQi0uVNkO2Tw=
+=dJjH
+-----END PGP SIGNATURE-----
diff --git a/dev-lang/lazarus/files/digest-lazarus-0.9.20-r1 b/dev-lang/lazarus/files/digest-lazarus-0.9.20-r1
new file mode 100644
index 0000000..0f4e94f
--- a/dev/null
+++ b/dev-lang/lazarus/files/digest-lazarus-0.9.20-r1
@@ -0,0 +1,3 @@
+MD5 8c232dc7cd398578049f57cd97d0d263 lazarus-0.9.20-0.tar.gz 10241274
+RMD160 5a2c061e42306008858cf8b3a51ecaa1aa3f0bca lazarus-0.9.20-0.tar.gz 10241274
+SHA256 c3416c557e510c9fcca5de59f128854eb5605f69fc7472cea11fc09ed5f8285e lazarus-0.9.20-0.tar.gz 10241274
diff --git a/dev-lang/lazarus/files/lazarus-0.9.20-fpcsrc.patch b/dev-lang/lazarus/files/lazarus-0.9.20-fpcsrc.patch
new file mode 100644
index 0000000..dbde4e0
--- a/dev/null
+++ b/dev-lang/lazarus/files/lazarus-0.9.20-fpcsrc.patch
@@ -0,0 +1,12 @@
+--- lazarus/ide/include/unix/lazbaseconf.inc
++++ lazarus/ide/include/unix/lazbaseconf.inc
+@@ -24,7 +24,8 @@
+ }
+
+ const
+- DefaultFPCSrcDirs: array[1..14] of string = (
++ DefaultFPCSrcDirs: array[1..15] of string = (
++ '/usr/lib/fpc/@FPCVER@/source',
+ '/usr/share/fpcsrc',
+ '/usr/local/share/fpcsrc',
+ '/usr/fpcsrc',
diff --git a/dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch b/dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch
new file mode 100644
index 0000000..772face
--- a/dev/null
+++ b/dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch
@@ -0,0 +1,25 @@
+ If LCLType is not included, then THandle is System.THandle
+ rather than LCLType.THandle. System.THandle is 32 bits wide.
+
+--- lazarus/lcl/interfaces/gtk/gtkwsdialogs.pp
++++ lazarus/lcl/interfaces/gtk/gtkwsdialogs.pp
+@@ -29,7 +29,7 @@
+ uses
+ {$IFDEF GTK2} Gtk2, Glib2, gdk2, {$ELSE} Gtk, gdk, Glib, {$ENDIF}
+ SysUtils, Classes, Controls, LMessages, InterfaceBase, graphics,
+- Dialogs, WSDialogs, WSLCLClasses, gtkint, gtkproc, gtkwscontrols;
++ LCLType, Dialogs, WSDialogs, WSLCLClasses, gtkint, gtkproc, gtkwscontrols;
+
+ type
+
+--- lazarus/lcl/widgetset/wsdialogs.pp
++++ lazarus/lcl/widgetset/wsdialogs.pp
+@@ -44,7 +44,7 @@
+ // To get as little as posible circles,
+ // uncomment only when needed for registration
+ ////////////////////////////////////////////////////
+- Dialogs,
++ LCLType, Dialogs,
+ ////////////////////////////////////////////////////
+ WSLCLClasses, WSControls;
+
diff --git a/dev-lang/lazarus/files/lazarus-0.9.20-lclintf.patch b/dev-lang/lazarus/files/lazarus-0.9.20-lclintf.patch
new file mode 100644
index 0000000..b515efa
--- a/dev/null
+++ b/dev-lang/lazarus/files/lazarus-0.9.20-lclintf.patch
@@ -0,0 +1,11 @@
+--- lazarus/ide/include/unix/lazbaseconf.inc
++++ lazarus/ide/include/unix/lazbaseconf.inc
+@@ -180,7 +180,7 @@
+
+ function GetDefaultLCLWidgetType: string;
+ begin
+- Result:='gtk';
++ Result:='gtk2';
+ end;
+
+ procedure GetDefaultBrowser(var Browser, Params: string);
diff --git a/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild b/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild
new file mode 100644
index 0000000..d8c91e4
--- a/dev/null
+++ b/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild,v 1.3 2007/04/01 11:39:48 truedfx Exp $
+
+inherit eutils
+
+FPCVER="2.0.4"
+
+SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
+LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-linking-exception"
+KEYWORDS="~amd64 ~ppc ~x86"
+DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi."
+HOMEPAGE="http://www.lazarus.freepascal.org/"
+IUSE=""
+SRC_URI="mirror://sourceforge/lazarus/${P}-0.tar.gz"
+
+DEPEND="~dev-lang/fpc-${FPCVER}
+ net-misc/rsync
+ >=x11-libs/gtk+-2.0"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ if ! built_with_use "dev-lang/fpc" source; then
+ eerror "You need to build dev-lang/fpc with the 'source' USE flag"
+ eerror "in order for lazarus to work properly."
+ die "lazarus needs fpc built with the 'source' USE to work."
+ fi
+}
+
+src_unpack() {
+ # check for broken fpc.cfg
+ # don't check in pkg_setup since it won't harm binpkgs
+ if grep -q '^[ ]*-Fu.*/lcl$' /etc/fpc.cfg
+ then
+ eerror "Your /etc/fpc.cfg automatically adds a LCL directory"
+ eerror "to the list of unit directories. This will break the"
+ eerror "build of lazarus."
+ die "don't set the LCL path in /etc/fpc.cfg"
+ fi
+
+ unpack ${A}
+ sed -e "s/@FPCVER@/${FPCVER}/" "${FILESDIR}"/${P}-fpcsrc.patch \
+ > "${T}"/fpcsrc.patch || die "could not sed fpcsrc patch"
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-lclintf.patch
+ epatch "${FILESDIR}"/${P}-lcl-handle.patch
+ epatch "${T}"/fpcsrc.patch
+}
+
+src_compile() {
+ LCL_PLATFORM=gtk2 emake -j1 || die "make failed!"
+}
+
+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*" \
+ "${S}" "${D}"usr/share \
+ || die "Unable to copy files!"
+
+ dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
+ dosym ../lazarus/images/mainicon.xpm /usr/share/pixmaps/lazarus.xpm
+
+ make_desktop_entry startlazarus "Lazarus IDE" "lazarus.xpm" || die "Failed making desktop entry!"
+}
diff --git a/dev-lang/lazarus/metadata.xml b/dev-lang/lazarus/metadata.xml
new file mode 100644
index 0000000..d1da8bb
--- a/dev/null
+++ b/dev-lang/lazarus/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>lang-misc</herd>
+<longdescription lang="en">
+A Borland Delphi lookalike for linux. Uses the free pascal compiler.
+</longdescription>
+</pkgmetadata>
+
diff --git a/profiles/categories b/profiles/categories
index f916367..4089e77 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -1,8 +1,10 @@
+app-admin
app-pda
app-text
dev-db
+dev-lang
dev-libs
dev-perl
sys-apps
www-misc
x11-plugins