From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-haskell/wxc/Manifest | 5 ++++ dev-haskell/wxc/metadata.xml | 18 ++++++++++++ dev-haskell/wxc/wxc-0.92.2.0.ebuild | 57 +++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 dev-haskell/wxc/Manifest create mode 100644 dev-haskell/wxc/metadata.xml create mode 100644 dev-haskell/wxc/wxc-0.92.2.0.ebuild (limited to 'dev-haskell/wxc') diff --git a/dev-haskell/wxc/Manifest b/dev-haskell/wxc/Manifest new file mode 100644 index 000000000000..a4ae8e93058d --- /dev/null +++ b/dev-haskell/wxc/Manifest @@ -0,0 +1,5 @@ +DIST wxc-0.92.2.0.tar.gz 203065 SHA256 e0da20807bafb22d51a0922211da11eb428b2a6661cb53bc98f6e17be9775191 SHA512 e6fba1be94978603965b8902fad9326772b5483d5df621d5245f1fae97d85bcb1aff4565f1e8396de23c854050151c5e009e34a1ea29c3037057599ac0412bcd WHIRLPOOL bbc05a53a02ee9a5dea7c3eb9745bab82c5290fb0a81e46eb359da27869538b5397a65149cf1ef8c551235584b77c055356422edb9f75bf3fbd4022efa90b042 +EBUILD wxc-0.92.2.0.ebuild 1671 SHA256 b4fbc6a76f4766782e72734228fbfe0fe00f018d84ad0f124541f119fa2616c4 SHA512 5aa427edcc824b7856a8926da4e131e9406b891fb2cf038c59ad9216fc054e84e970d86f7deb4d7f3907096bc6413b84b6ecc2e2f05b61979a1d1697af7db93e WHIRLPOOL 04e576f85e30a29583f60019c4beddd523a9dd28323b04b8a1f9d3b68571e4d8c50ff25a31901f8ad7c4d8ad9a2c936f8b8463f0fbeca05db4390fc31c53e507 +MISC ChangeLog 2955 SHA256 2665cd05f63d90a4aa4cc32d2ae155798aaa3716ecdc1667c164df94335c824f SHA512 f5387387d1b42fe5dd1f3faaf6041bcd6d469a4262c38ccb43a6fbb2b47dc7401ba011862908772ee4d31a4815eb412c06a2e9acedd1fa34dced94b75d76f667 WHIRLPOOL d52d4d746203f30653b2845eb115c45be822e70aae113a0a5a19225b9a76cf3fa79aa9c5158b168e309c721cebc351162e70216922ca9d76ca9841cf1d718a18 +MISC ChangeLog-2015 786 SHA256 7c00c42bbeae18bdc83fd00b2e962e6ff366e9956c9bce6cd2ab4cb650ca5202 SHA512 c5a9761d94b310a5ae6deb093491fcffb0529499f5e87639970e5c2534b309853325ec678e7e520dbbe3230dce2c1561bcca9034576142d2516829a0458cb354 WHIRLPOOL 05e2d832d0ca619b86244e133ed45d2bc60891aa769e45fe9a7fae1c7401f6ae7f0e2ad4b586142e5e426b279284ffcefc787802825b1a739aa7ce7fc45d87d9 +MISC metadata.xml 796 SHA256 7fd63424984df00ecd2969c1f24fe1695c8b6000e393f084b406fce71ba5016e SHA512 47ffc15e1167354eebbbeecfe9557d01dc832a67c2b7d213528f8be73846dab272351670f5b45be9098713c4ec3106753d8fa1cffdbb2844d0a9d8cd3146cd94 WHIRLPOOL 4baa6b9cd8056f29916b4ebbb4c1701789b61852c32623e341a8a52b36a696c3e1dfd38e256138232464561f899c073236494d03de2fdb4ae208b915fed9562a diff --git a/dev-haskell/wxc/metadata.xml b/dev-haskell/wxc/metadata.xml new file mode 100644 index 000000000000..7960f5bec78c --- /dev/null +++ b/dev-haskell/wxc/metadata.xml @@ -0,0 +1,18 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + 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. + + diff --git a/dev-haskell/wxc/wxc-0.92.2.0.ebuild b/dev-haskell/wxc/wxc-0.92.2.0.ebuild new file mode 100644 index 000000000000..5d2fefd68d98 --- /dev/null +++ b/dev-haskell/wxc/wxc-0.92.2.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.7.9999 + +WX_GTK_VER="3.0" + +CABAL_FEATURES="lib profile" +inherit haskell-cabal multilib versionator wxwidgets + +DESCRIPTION="wxHaskell C++ wrapper" +HOMEPAGE="https://wiki.haskell.org/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/split-0:=[profile?] + >=dev-haskell/wxdirect-0.90.1.1:${WX_GTK_VER}=[profile?] + x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer,opengl] + >=dev-lang/ghc-7.6.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.16.0 +" + +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 +} -- cgit v1.2.3