You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/massxpert/massxpert-2.0.5.ebuild,v 1.2 2009/10/04 15:14:58 ssuominen Exp $
|
|
|
|
EAPI="2"
|
|
|
|
inherit cmake-utils
|
|
|
|
DESCRIPTION="A software suite to predict/analyze mass spectrometric data on (bio)polymers."
|
|
HOMEPAGE="http://massxpert.org"
|
|
SRC_URI="http://download.tuxfamily.org/${PN}/source/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="debug doc"
|
|
|
|
RDEPEND="x11-libs/qt-svg:4[debug?]"
|
|
DEPEND="${DEPEND}
|
|
doc? ( virtual/latex-base )"
|
|
|
|
MASSXPERT_LANGS="fr"
|
|
|
|
for L in ${MASSXPERT_LANGS}; do
|
|
IUSE="${IUSE} linguas_${L}"
|
|
done
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/${P}-gentoo.patch"
|
|
|
|
local langs=
|
|
for lingua in ${LINGUAS}; do
|
|
if has ${lingua} ${MASSXPERT_LANGS}; then
|
|
langs="${langs} ${PN}_${lingua}.qm"
|
|
fi
|
|
done
|
|
|
|
sed -i -e "s/\(SET (massxpert_TRANSLATIONS \).*/\1${langs})/" \
|
|
gui/CMakeLists.txt || die "setting up translations failed"
|
|
}
|
|
|
|
src_configure() {
|
|
append-ldflags $(no-as-needed)
|
|
|
|
mycmakeargs="
|
|
-DBUILD_PROGRAM=1
|
|
-DBUILD_DATA=1"
|
|
use doc && mycmakeargs="${mycmakeargs} -DBUILD_USERMANUAL=1"
|
|
|
|
cmake-utils_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake-utils_src_install
|
|
doicon "gui/images/${PN}-icon-32.xpm" || die "installing icon failed"
|
|
dodoc TODO || die "dodoc failed"
|
|
}
|