-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net-p2p/classified-ads: v0.10 version bump. #1406
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
PLOCALES="en fi sv da uk" | ||
PLOCALE_BACKUP="en" | ||
inherit qmake-utils virtualx vcs-snapshot l10n | ||
|
||
COMMIT_ID="cd0652c52f86f6284b793f26e5362bc8fb8a7118" | ||
DESCRIPTION="Program for displaying classified advertisement items" | ||
HOMEPAGE="http://katiska.org/classified-ads/" | ||
SRC_URI="https://github.com/operatornormal/classified-ads/archive/${COMMIT_ID}.tar.gz -> ${P}.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="doc test" | ||
|
||
RDEPEND="dev-libs/openssl:0 | ||
>=net-libs/libnatpmp-20130911 | ||
<=net-libs/libnatpmp-20140401-r1 | ||
>=net-libs/miniupnpc-1.8 | ||
sys-apps/file | ||
dev-qt/qtcore:5 | ||
dev-qt/qtgui:5 | ||
dev-qt/qtnetwork:5[ssl] | ||
dev-qt/qtwidgets:5 | ||
dev-qt/qtsql:5[sqlite] | ||
dev-qt/qtmultimedia:5[widgets] | ||
dev-qt/qt-mobility[multimedia] | ||
dev-qt/qtprintsupport:5 | ||
media-libs/opus | ||
virtual/libintl" | ||
|
||
DEPEND="${RDEPEND} | ||
doc? ( app-doc/doxygen[dot] ) | ||
test? ( dev-libs/libgcrypt:0 | ||
dev-qt/qttest:5 | ||
sys-devel/gdb:0 )" | ||
|
||
src_prepare() { | ||
# preprocessed graphics are unpacked into wrong directory | ||
# so lets move them into correct location: | ||
mv ../classified-ads-graphics-${PV}/* ui/ || die | ||
# possible patches | ||
eapply_user | ||
} | ||
|
||
src_configure() { | ||
eqmake5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move qmake to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure what is going on here |
||
if use test; then | ||
cd test || die | ||
eqmake5 | ||
fi | ||
} | ||
|
||
src_compile() { | ||
emake | ||
if use doc; then | ||
pushd doc || die | ||
doxygen || die | ||
popd >> /dev/null || die | ||
fi | ||
if use test; then | ||
pushd test || die | ||
emake | ||
popd >> /dev/null || die | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've never seen someone appending data to |
||
fi | ||
} | ||
|
||
src_test() { | ||
# testca will return 0 if all unit tests pass | ||
virtx ./test/testca | ||
} | ||
|
||
src_install() { | ||
emake install INSTALL_ROOT="${D}" DESTDIR="${D}" | ||
use doc && dodoc -r doc/doxygen.generated/html/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better alternative: use doc && HTML_DOCS+=( doc/doxygen.generated/html )
einstalldocs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll try to have this documentation installation method in next release. About appending to /dev/null I've noticed that my /dev/null is not full yet but I'm working on that.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The best is always to start the new branch right away, but as you're currently busy with /dev/null, just take your time. |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and where is the rest of the l10n eclass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does appear this eclass is not inherited. PLOCALES && PLOCALE_BACKUP are indeed vars from the l10n eclass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although inherited, still not implemented.