--- /dev/null
+# ChangeLog for dev-util/xwpe
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 09 Jan 2010; Andreas K. Huettel (dilfridge) <mail@akhuettel.de>
+ +xwpe-1.5.30a.ebuild, +files/xwpe-1.5.30a-destdir.patch, +metadata.xml:
+ New application, see bug 300297. Thanks to ohnobinki and Tommy[D].
+
--- /dev/null
+AUX xwpe-1.5.30a-destdir.patch 1498 RMD160 d2a0c35142d435e95a755741473d58ab0bce1b1b SHA1 fbdfad82f839a79eae2c71b5fa71a00150386c66 SHA256 96eac4868f24b70b3aa422010829ee688c0db7cb1430af6762eeba0bb0c78c26
+DIST xwpe-1.5.30a.tar.gz 325043 RMD160 f9e0c12cfe931b7315df6fc139d31dadf109c9b9 SHA1 fdf55dc887245d5abd9f735f7475e5d6c5a20daa SHA256 fce37a5dd3afd7102a73d187eda8b9d1ab88bf5db649f385b8cd13e72e0c7961
+EBUILD xwpe-1.5.30a.ebuild 566 RMD160 5cef0f610af925e8d4c51ffc7df38483e97325b0 SHA1 be74445f9aa176516d3240ae8f58dcebab8815b9 SHA256 20f39eda49f669d98a1005b4aad9369d0494f01ae3d0d40548a2dc0596d3eeef
+MISC ChangeLog 324 RMD160 ebea273d522d6baf7ea89f21ae090b725db10246 SHA1 fa00116c3f971f872edd72a92f7cdb80786da1f7 SHA256 9a81b130b2df0d53f515405df6c0b48f018538218bbb505eae3cb20a767218ce
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
--- /dev/null
+diff -r -u xwpe-1.5.30a-orig/Makefile.in xwpe-1.5.30a/Makefile.in
+--- xwpe-1.5.30a-orig/Makefile.in 2005-07-07 03:53:09.000000000 +0200
++++ xwpe-1.5.30a/Makefile.in 2009-12-28 13:16:49.000000000 +0100
+@@ -9,10 +9,10 @@
+ #Destination Directory
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-DESTDIR=@bindir@
+-LIBDIR=@libdir@
+-XWPELIBDIR= $(LIBDIR)/xwpe
+-MANDIR=@mandir@
++BINDIR=$(DESTDIR)/@bindir@
++LIBDIR=$(DESTDIR)/@libdir@
++XWPELIBDIR=$(LIBDIR)/xwpe
++MANDIR=$(DESTDIR)/@mandir@
+
+ LIBS=@LIBS@
+ XLIBS=@X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@
+@@ -115,14 +115,14 @@
+ # Bug Note: Currently xwpe and xwe are installed even if X windows versions
+ # are not compiled. (They will function as wpe and we respectively.)
+ install_fst: xwpe
+- if test ! -d $(DESTDIR); then mkdir -p $(DESTDIR); fi
++ if test ! -d $(BINDIR); then mkdir -p $(BINDIR); fi
+ if test ! -d $(XWPELIBDIR); then mkdir -p $(XWPELIBDIR); fi
+- rm -f $(DESTDIR)/wpe $(DESTDIR)/xwpe $(DESTDIR)/we $(DESTDIR)/xwe
+- $(INSTALL) xwpe $(DESTDIR)/we
+- chmod ugo+x $(DESTDIR)/we
+- (cd $(DESTDIR) && $(LN_S) we xwe)
+- (cd $(DESTDIR) && $(LN_S) we xwpe)
+- (cd $(DESTDIR) && $(LN_S) we wpe)
++ rm -f $(BINDIR)/wpe $(BINDIR)/xwpe $(BINDIR)/we $(BINDIR)/xwe
++ $(INSTALL) xwpe $(BINDIR)/we
++ chmod ugo+x $(BINDIR)/we
++ (cd $(BINDIR) && $(LN_S) we xwe)
++ (cd $(BINDIR) && $(LN_S) we xwpe)
++ (cd $(BINDIR) && $(LN_S) we wpe)
+ rm -f $(XWPELIBDIR)/help.xwpe
+ if test ! -f $(XWPELIBDIR)/syntax_def; then \
+ $(INSTALL) syntax_def $(XWPELIBDIR)/syntax_def; \
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header $
+
+EAPI=2
+
+inherit base
+
+DESCRIPTION="Programming environment mimicking Borland C and Pascal"
+HOMEPAGE="http://www.identicalsoftware.com/xwpe/"
+SRC_URI="http://www.identicalsoftware.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="X"
+
+DEPEND="sys-libs/ncurses
+ sys-libs/gpm
+ sys-libs/zlib
+ X? ( x11-libs/libX11 )"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-destdir.patch" )
+
+src_configure() {
+ econf $(use_with X x)
+}