forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-p2p/classified-ads: version bump: v0.10
Package-Manager: portage-2.2.26 Closes: gentoo#1327 Signed-off-by: Ian Delaney <[email protected]>
- Loading branch information
1 parent
9671610
commit 3ae2461
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
PLOCALES="en fi sv da uk" | ||
PLOCALE_BACKUP="en" | ||
inherit qt4-r2 qmake-utils | ||
|
||
DESCRIPTION="Program for displaying classified advertisement items" | ||
HOMEPAGE="http://katiska.org/classified-ads/" | ||
SRC_URI="https://github.com/operatornormal/classified-ads/archive/${PV}.tar.gz -> classified-ads-${PV}.tar.gz \ | ||
https://github.com/operatornormal/classified-ads/blob/graphics/preprocessed.tar.gz?raw=true \ | ||
-> classified-ads-graphics-${PV}.tar.gz" | ||
|
||
LICENSE="LGPL-2.1" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
|
||
IUSE="debug doc test" | ||
|
||
RDEPEND="dev-libs/openssl:0 | ||
dev-libs/qjson | ||
>=net-libs/libnatpmp-20130911 | ||
<=net-libs/libnatpmp-20140401-r1 | ||
>=net-libs/miniupnpc-1.8 | ||
sys-apps/file | ||
sys-devel/gettext | ||
dev-qt/qtcore:4[ssl] | ||
dev-qt/qtsql:4[sqlite] | ||
dev-qt/qtgui:4[debug?] | ||
dev-qt/qt-mobility[multimedia] | ||
dev-qt/qtmultimedia:4 | ||
media-libs/opus" | ||
|
||
DEPEND="${RDEPEND} | ||
dev-qt/qttest:4 | ||
sys-devel/gdb:0 | ||
doc? ( app-doc/doxygen[dot] ) | ||
test? ( dev-libs/libgcrypt:0 ) | ||
" | ||
|
||
src_prepare() { | ||
# preprocessed graphics are unpacked into wrong directory | ||
# so lets move them into correct location: | ||
mv ../ui/* ui/ || die | ||
# then just run qmake | ||
qt4-r2_src_prepare | ||
} | ||
|
||
src_compile() { | ||
qt4-r2_src_compile | ||
if use doc; then | ||
cd doc || die | ||
doxygen || die | ||
fi | ||
} | ||
|
||
src_test() { | ||
cd test || die "test suite missing" | ||
"$(qt4_get_bindir)"/qmake || die "test suite configure failed" | ||
emake | ||
# test suite will create files under $HOME, set $HOME to point to | ||
# safe location, ideas stolen from | ||
# eclass/distutils-r1.eclass func distutils_install_for_testing | ||
BACKUP_HOME=$HOME | ||
export HOME=${BUILD_DIR}/tmp | ||
mkdir -p $HOME || true | ||
./testca | ||
result=$? | ||
export HOME=$BACKUP_HOME | ||
if [ $result != "0" ]; then | ||
die "test suite failed with error code " `echo $result` | ||
fi | ||
} | ||
|
||
src_install() { | ||
emake install INSTALL_ROOT="${D}" DESTDIR="${D}" | ||
use doc && dodoc -r doc/doxygen.generated/html/ | ||
} |