Last active
February 14, 2016 06:41
-
-
Save velnias75/d9d3dfc95158e6f9a587 to your computer and use it in GitHub Desktop.
Gentoo ebuild for QGitHubReleaseAPI with GitHub fetch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2015 Heiko Schaefer <[email protected]> | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=5 | |
inherit cmake-utils eutils git-r3 | |
DESCRIPTION="Qt library to receive release information from the GitHub API" | |
HOMEPAGE="https://github.com/velnias75/QGitHubReleaseAPI" | |
EGIT_REPO_URI="http://github.com/velnias75/QGitHubReleaseAPI.git" | |
LICENSE="LGPL-3" | |
SLOT="0" | |
KEYWORDS="" | |
IUSE="doc static-libs qt4 qt5" | |
REQUIRED_USE="|| ( qt4 qt5 )" | |
EGIT_BRANCH="$( usex qt4 'master' 'Qt5' )" | |
RDEPEND=" | |
app-text/discount | |
qt4? ( dev-libs/qjson dev-qt/qtcore:4 dev-qt/qtgui:4 ) | |
qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 ) | |
" | |
DEPEND=" | |
${RDEPEND} | |
doc? ( >=app-doc/doxygen-1.8.0 ) | |
virtual/pkgconfig | |
" | |
src_configure() { | |
local mycmakeargs=( | |
-DBUILD_SHARED_LIBS=TRUE | |
$( usex doc '' '-DDOXYGEN_FOUND=FALSE' ) | |
) | |
cmake-utils_src_configure | |
} | |
src_install() { | |
cmake-utils_src_install | |
if use doc ; then | |
MY_DOCS="${D}/usr/share/doc/QGitHubReleaseAPI-*/html/" | |
dohtml -A svg -r ${MY_DOCS} | |
rm -rf "${D}"/usr/share/doc/QGitHubReleaseAPI-* | |
fi | |
if ! use static-libs ; then | |
rm -f "${D}"/usr/lib/libqgithubreleaseapi_static.a | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment