diff options
author | Davide Pesavento <pesa@gentoo.org> | 2012-03-14 00:16:53 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2012-03-14 00:16:53 +0000 |
commit | a7f7147c8b9b09fd9a386bda71a16f4bfbec18b7 (patch) | |
tree | 505cd16086ef31e34c4c207ada8a2713245ecc93 /app-misc/brewtarget | |
parent | iwmmxt removed upstream (diff) | |
download | gentoo-2-a7f7147c8b9b09fd9a386bda71a16f4bfbec18b7.tar.gz gentoo-2-a7f7147c8b9b09fd9a386bda71a16f4bfbec18b7.tar.bz2 gentoo-2-a7f7147c8b9b09fd9a386bda71a16f4bfbec18b7.zip |
Initial commit, ebuild and patch by me.
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/brewtarget')
-rw-r--r-- | app-misc/brewtarget/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/brewtarget/Manifest | 4 | ||||
-rw-r--r-- | app-misc/brewtarget/brewtarget-1.2.4.ebuild | 42 | ||||
-rw-r--r-- | app-misc/brewtarget/files/1.2.4-find-phonon.patch | 40 | ||||
-rw-r--r-- | app-misc/brewtarget/metadata.xml | 6 |
5 files changed, 102 insertions, 0 deletions
diff --git a/app-misc/brewtarget/ChangeLog b/app-misc/brewtarget/ChangeLog new file mode 100644 index 000000000000..f2bc06c1afff --- /dev/null +++ b/app-misc/brewtarget/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-misc/brewtarget +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/brewtarget/ChangeLog,v 1.1 2012/03/14 00:16:53 pesa Exp $ + +*brewtarget-1.2.4 (14 Mar 2012) + + 14 Mar 2012; Davide Pesavento <pesa@gentoo.org> +brewtarget-1.2.4.ebuild, + +files/1.2.4-find-phonon.patch, +metadata.xml: + Initial commit, ebuild and patch by me. + diff --git a/app-misc/brewtarget/Manifest b/app-misc/brewtarget/Manifest new file mode 100644 index 000000000000..8533f1de9f76 --- /dev/null +++ b/app-misc/brewtarget/Manifest @@ -0,0 +1,4 @@ +AUX 1.2.4-find-phonon.patch 1878 RMD160 166a79093c73d99010de09400e0998b71d8f1a68 SHA1 0f8261bd480e362ed4211847ecae79475acd65e5 SHA256 5d3b85fbf5ef8f34389e1622ad5b6380842fe7847ce04614d47baa0821dc0045 +DIST brewtarget_1.2.4.orig.tar.gz 8699961 RMD160 8b98cafad0ff2de79fbb6cada3b37bd31ea8b0e6 SHA1 37789de0c1d6b931b1c17912621441fd121cccfa SHA256 ff18b76c9d3400131f6189289592b50457776bdfa51a15c00ab910e3726a5512 +EBUILD brewtarget-1.2.4.ebuild 922 RMD160 e69ffd9176e86441185475a90f8b932574577a11 SHA1 e3849a2be2c3ba80470c844ae891064a234bfe62 SHA256 fa892bf566c0cc9294176f64fdcd0e60ad61558528811c61366c359b0b21c602 +MISC metadata.xml 127 RMD160 7a96c8c4145f285dfd620b0350e10e45305aa1ad SHA1 95b69a84f97d14ee9488b3cdeb2f4d693662ac64 SHA256 26e7e6fee139f863bfb672b0b4be7221a422b9a13cc0766af054f1a6c2ee382b diff --git a/app-misc/brewtarget/brewtarget-1.2.4.ebuild b/app-misc/brewtarget/brewtarget-1.2.4.ebuild new file mode 100644 index 000000000000..ebd9e301f2a2 --- /dev/null +++ b/app-misc/brewtarget/brewtarget-1.2.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/brewtarget/brewtarget-1.2.4.ebuild,v 1.1 2012/03/14 00:16:53 pesa Exp $ + +EAPI=4 + +inherit cmake-utils + +DESCRIPTION="Application to create and manage beer recipes" +HOMEPAGE="http://brewtarget.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-3 WTFPL-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="kde" + +DEPEND=" + >=x11-libs/qt-core-4.6:4 + >=x11-libs/qt-gui-4.6:4 + >=x11-libs/qt-svg-4.6:4 + >=x11-libs/qt-webkit-4.6:4 + kde? ( media-libs/phonon ) + !kde? ( || ( >=x11-libs/qt-phonon-4.6:4 media-libs/phonon ) ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PV}-find-phonon.patch" +) + +src_prepare() { + base_src_prepare + + # Fix docs install path + sed -i -e "/DOCDIR / s:\${CMAKE_PROJECT_NAME}:${PF}:" \ + CMakeLists.txt || die + + # Append missing semicolon to Categories in desktop file + sed -i -e '/^Categories=/ s:$:;:' ${PN}.desktop.in || die +} diff --git a/app-misc/brewtarget/files/1.2.4-find-phonon.patch b/app-misc/brewtarget/files/1.2.4-find-phonon.patch new file mode 100644 index 000000000000..34f1436e95d3 --- /dev/null +++ b/app-misc/brewtarget/files/1.2.4-find-phonon.patch @@ -0,0 +1,40 @@ +--- brewtarget-1.2.4.orig/CMakeLists.txt 2012-03-14 00:08:19.969684464 +0100 ++++ brewtarget-1.2.4/CMakeLists.txt 2012-03-14 00:11:39.289192627 +0100 +@@ -66,29 +66,28 @@ + INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/QtDesignerPlugins") + + # ======================Find Qt4 (>= 4.6.0) for this project=================== +-SET( EXT_LIBS "" ) +- + IF( ${BUILD_DESIGNER_PLUGINS} ) +- FIND_PACKAGE(Qt4 4.6.0 COMPONENTS QtCore QtGui QtNetwork QtSvg QtWebKit QtXml Phonon QtDesigner REQUIRED) ++ FIND_PACKAGE(Qt4 4.6.0 COMPONENTS QtCore QtGui QtNetwork QtSvg QtWebKit QtXml QtDesigner REQUIRED) + ELSE() +- FIND_PACKAGE(Qt4 4.6.0 COMPONENTS QtCore QtGui QtNetwork QtSvg QtWebkit QtXml Phonon REQUIRED) ++ FIND_PACKAGE(Qt4 4.6.0 COMPONENTS QtCore QtGui QtNetwork QtSvg QtWebkit QtXml REQUIRED) + ENDIF() + + MESSAGE( STATUS "CMAKE_SYSTEM_INCLUDE_PATH: ${CMAKE_SYSTEM_INCLUDE_PATH}" ) + + # Some distros seem to treat Qt and Phonon as separate, so try to find Phonon. + IF( NOT QT_PHONON_FOUND ) +- MESSAGE( STATUS "Phonon not found as a part of Qt; trying another approach." ) +- +- FIND_LIBRARY( EXT_PHONON_LIB phonon ) +- FIND_PATH( EXT_PHONON_PATH "mediaobject.h" ) ++ FIND_LIBRARY( EXT_PHONON_LIB phonon ++ PATHS /usr/lib64/qt4 ) ++ FIND_PATH( EXT_PHONON_PATH "mediaobject.h" ++ PATHS /usr/include/phonon ++ /usr/include/qt4/phonon ) + + IF( EXISTS ${EXT_PHONON_LIB} AND EXISTS ${EXT_PHONON_PATH} ) + MESSAGE( STATUS "Hooray! Phonon found." ) + MESSAGE( STATUS "Phonon dir: ${EXT_PHONON_PATH}") + MESSAGE( STATUS "Phonon lib: ${EXT_PHONON_LIB}") + +- SET( EXT_LIBS ${EXT_LIBS} ${EXT_PHONON_LIB} ) ++ SET( EXT_LIBRARIES ${EXT_PHONON_LIB} ) + INCLUDE_DIRECTORIES( ${EXT_PHONON_PATH} ) + ELSE() + MESSAGE( FATAL_ERROR "Phonon not found. Run cmake again with the option -DCMAKE_PREFIX_PATH=/path/to/phonon" ) diff --git a/app-misc/brewtarget/metadata.xml b/app-misc/brewtarget/metadata.xml new file mode 100644 index 000000000000..96387eef0975 --- /dev/null +++ b/app-misc/brewtarget/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<pkgmetadata> +<maintainer> + <email>pesa@gentoo.org</email> +</maintainer> +</pkgmetadata> |