diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-haskell/wxc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-haskell/wxc')
-rw-r--r-- | dev-haskell/wxc/Manifest | 2 | ||||
-rw-r--r-- | dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch | 11 | ||||
-rw-r--r-- | dev-haskell/wxc/metadata.xml | 15 | ||||
-rw-r--r-- | dev-haskell/wxc/wxc-0.90.0.4.ebuild | 66 | ||||
-rw-r--r-- | dev-haskell/wxc/wxc-0.90.1.1.ebuild | 65 |
5 files changed, 159 insertions, 0 deletions
diff --git a/dev-haskell/wxc/Manifest b/dev-haskell/wxc/Manifest new file mode 100644 index 000000000000..d064e409c0bb --- /dev/null +++ b/dev-haskell/wxc/Manifest @@ -0,0 +1,2 @@ +DIST wxc-0.90.0.4.tar.gz 181799 SHA256 e69e4870c33dc32ee388c5f1be5b0ad1f2b231aa16a51da205cfa295430402ae SHA512 4dd3846465a3c43c507a8b76e3929736b1e0ed0941201803f2209cb2ce347cddda9fd725796c6a7d306209324a9201c91d36ee9808c694c9110ab393d80f5c97 WHIRLPOOL ddebc3f800f15249185e7d0d6b207fd7576e70037792cbb164568c3a960a7cee96518eb6099ffbd2c06319b04c10e4f684b5c376388d39d648afd614806ab6e5 +DIST wxc-0.90.1.1.tar.gz 183992 SHA256 ec71deebafdb69e50742acf1a4307ab2706f3282d24022a8a603eb3d35bc6e33 SHA512 917af9eaa8e07b0ce827da9c350811d514ebd0627f410b28836340adec21c119283a62d1533475eb3ba2e960dad2e26067ad6e8e5820b2e69ede86e5f4404548 WHIRLPOOL 58ff612f74d0dada055030eb907559c056ab8fb40b2d31647f33bd900c17c75c0abdeba36d59aeb3127e28020d4d21af4c9d60eb3d3c29f36677ffccbbed97b8 diff --git a/dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch b/dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch new file mode 100644 index 000000000000..3786e6ad5322 --- /dev/null +++ b/dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch @@ -0,0 +1,11 @@ +--- wxc-0.90.0.4-orig/src/cpp/eljpen.cpp 2012-07-03 20:12:17.000000000 +1000 ++++ wxc-0.90.0.4/src/cpp/eljpen.cpp 2012-08-18 11:37:00.625281748 +1000 +@@ -156,7 +156,7 @@ + EWXWEXPORT(void,wxPen_GetStipple)(void* self,wxBitmap* _ref)
+ {
+ #if defined(__WXGTK__)
+- *_ref = NULL;
++ *_ref = wxBitmap();
+ #else
+ *_ref = *(((wxPen*)self)->GetStipple());
+ #endif
diff --git a/dev-haskell/wxc/metadata.xml b/dev-haskell/wxc/metadata.xml new file mode 100644 index 000000000000..3a1ee8a5c4a8 --- /dev/null +++ b/dev-haskell/wxc/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> + <longdescription> + wxHaskell is a portable and native GUI library for Haskell. It is + built on top of wxWidgets, a comprehensive C++ library that is + portable across all major GUI platforms, including GTK, Windows, + X11, and MacOS X. This version works with wxWidgets 2.9 only. + Distributed under the WXWINDOWS LIBRARY LICENSE. Please see + LICENSE file, but note that this is essentially LGPL with an + exception allowing binary distribution of proprietary software. + This is the same license as wxWidgets itself uses. + </longdescription> +</pkgmetadata> diff --git a/dev-haskell/wxc/wxc-0.90.0.4.ebuild b/dev-haskell/wxc/wxc-0.90.0.4.ebuild new file mode 100644 index 000000000000..8e19699bf4f8 --- /dev/null +++ b/dev-haskell/wxc/wxc-0.90.0.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.3.9999 + +WX_GTK_VER="2.9" + +CABAL_FEATURES="lib profile" +inherit base haskell-cabal multilib versionator wxwidgets + +DESCRIPTION="wxHaskell C++ wrapper" +HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="wxWinLL-3.1" +SLOT="${WX_GTK_VER}/${PV}" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/wxdirect-0.90:${WX_GTK_VER}=[profile?] + x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer,opengl] + >=dev-lang/ghc-6.10.4:=" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.2" + +PATCHES=("${FILESDIR}/${PN}-0.90.0.4-wxGTK-2.9.4.1.patch") + +src_prepare() { + base_src_prepare + sed -e "s@\"wx-config\"@\"${WX_CONFIG}\"@g" \ + -i "${S}/Setup.hs" || die "Could not specify wx-config in Setup.hs" +} + +src_configure() { + local cgcc=() + for i in ${CXXFLAGS} + do + cgcc+=( --gcc-option="${i}" ) + done + # Trying to specify the LDFLAGS in --ld-option does not work, as ld does + # not understand ld options prefixed with -Wl, + # The linker that is used to link the libwxc.so shared library is hard coded + # in Setup.hs. So the --with-ld would not change the linker used when + # linking libwxc.so. --with-ld="gcc" does not help, as then cabal passes + # ld options like -x to gcc which then returns a non-zero exit status, then + # cabal ignores all the --ld-option parameters. + # So I place all the LDFLAGS in --gcc-option parameters. They are ignored + # when building .o files. + local cld=() + for i in ${LDFLAGS} + do + cld+=( --gcc-option="${i}" ) + done + cabal_src_configure ${cgcc[*]} ${cld[*]} --verbose=3 +} + +src_install() { + cabal_src_install + dolib.so dist/build/lib${PN}.so.${PV} + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_version_component_range 1-2) + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version) + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so +} diff --git a/dev-haskell/wxc/wxc-0.90.1.1.ebuild b/dev-haskell/wxc/wxc-0.90.1.1.ebuild new file mode 100644 index 000000000000..21af12eb3ae3 --- /dev/null +++ b/dev-haskell/wxc/wxc-0.90.1.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.3.6.9999 + +WX_GTK_VER="2.9" + +CABAL_FEATURES="lib profile" +inherit haskell-cabal multilib versionator wxwidgets + +DESCRIPTION="wxHaskell C++ wrapper" +HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="wxWinLL-3.1" +SLOT="${WX_GTK_VER}/${PV}" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/wxdirect-0.90.1.0:${WX_GTK_VER}=[profile?] + x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer,opengl] + >=dev-lang/ghc-6.10.4:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6.0.3 +" + +src_prepare() { + sed -e "s@\"wx-config\"@\"${WX_CONFIG}\"@g" \ + -i "${S}/Setup.hs" || die "Could not specify wx-config in Setup.hs" +} + +src_configure() { + local cgcc=() + for i in ${CXXFLAGS} + do + cgcc+=( --gcc-option="${i}" ) + done + # Trying to specify the LDFLAGS in --ld-option does not work, as ld does + # not understand ld options prefixed with -Wl, + # The linker that is used to link the libwxc.so shared library is hard coded + # in Setup.hs. So the --with-ld would not change the linker used when + # linking libwxc.so. --with-ld="gcc" does not help, as then cabal passes + # ld options like -x to gcc which then returns a non-zero exit status, then + # cabal ignores all the --ld-option parameters. + # So I place all the LDFLAGS in --gcc-option parameters. They are ignored + # when building .o files. + local cld=() + for i in ${LDFLAGS} + do + cld+=( --gcc-option="${i}" ) + done + cabal_src_configure ${cgcc[*]} ${cld[*]} --verbose=3 +} + +src_install() { + cabal_src_install + dolib.so dist/build/lib${PN}.so.${PV} + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_version_component_range 1-2) + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version) + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so +} |