diff options
author | Przemyslaw Maciag <troll@gentoo.org> | 2006-11-12 22:16:53 +0000 |
---|---|---|
committer | Przemyslaw Maciag <troll@gentoo.org> | 2006-11-12 22:16:53 +0000 |
commit | 1100f413bdad52ada157c18561b26f70a5fd6646 (patch) | |
tree | feb523835670b9f4f97ba7fc8d7a9c5f7460c643 /x11-misc/ifpgui/ifpgui-0.10.8.ebuild | |
parent | Wiped out old dev-dotnet/xsp version (diff) | |
download | gentoo-2-1100f413bdad52ada157c18561b26f70a5fd6646.tar.gz gentoo-2-1100f413bdad52ada157c18561b26f70a5fd6646.tar.bz2 gentoo-2-1100f413bdad52ada157c18561b26f70a5fd6646.zip |
Initial release (closing #118115)
(Portage version: 2.1.2_rc1-r6)
Diffstat (limited to 'x11-misc/ifpgui/ifpgui-0.10.8.ebuild')
-rw-r--r-- | x11-misc/ifpgui/ifpgui-0.10.8.ebuild | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/x11-misc/ifpgui/ifpgui-0.10.8.ebuild b/x11-misc/ifpgui/ifpgui-0.10.8.ebuild new file mode 100644 index 000000000000..8a92b0c8e007 --- /dev/null +++ b/x11-misc/ifpgui/ifpgui-0.10.8.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/ifpgui/ifpgui-0.10.8.ebuild,v 1.1 2006/11/12 22:16:53 troll Exp $ + +inherit eutils qt3 + +DESCRIPTION="A Linux GUI for the iRiver iFP flash portable player based on QT" +HOMEPAGE="http://ifpgui.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="doc" +LANGS="da de ru" +for x in ${LANGS}; do + IUSE="${IUSE} linguas_${x}" +done + +RDEPEND=">=media-libs/libifp-1.0.0.2 + $(qt_min_version 3.3) + >=dev-libs/libusb-0.1.7" +DEPEND="${RDEPEND} + doc? ( >=app-doc/doxygen-1.3.7 )" + +src_unpack() { + unpack ${A} + cd ${S} + + # some Doxyfile improvements + if use doc; then + epatch ${FILESDIR}/${PN}-doxyfile_fixes.patch + sed -i -e '/PROJECT_NUMBER/ s/[0..9].*$/'${PV}'/' \ + -e '/OUTPUT/ s/\/home.*$/\.\/doc/' Doxyfile + mkdir doc + fi + + # we want to use system libifp + rm -rf src/libifp src/ifp.h + epatch ${FILESDIR}/${PN}-use_system_libifp.patch + + # change path to translation files + epatch ${FILESDIR}/${PN}-translation_files_directory.patch + + # fixing locale + mv ${S}/src/translations/${PN}_da_DK.ts ${S}/src/translations/${PN}_da.ts +} + +src_compile() { + cd ${S}/src + ${QTDIR}/bin/qmake src.pro \ + QMAKE=${QTDIR}/bin/qmake \ + QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \ + QMAKE_RPATH= \ + "CONFIG += no_fixpath release thread" \ + || die "qmake src.pro failed" + + cd ${S} + ${QTDIR}/bin/qmake ${PN}.pro \ + QMAKE=${QTDIR}/bin/qmake \ + QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \ + QMAKE_RPATH= \ + "CONFIG += no_fixpath release thread" \ + || die "qmake ${PN}.pro failed" + + emake || die "emake failed" + + use doc && doxygen + + # make translation files if there are any chosen + cd ${S}/src/translations + for i in ${LANGS}; do + use linguas_${i} && [ -f ${PN}_${i}.ts ] && ${QTDIR}/bin/lrelease ${PN}_${i}.ts + done; +} + +src_install() { + dobin bin/${PN} + + insinto /usr/share/${PN} + doins nonroot.sh + + dodoc README CHANGELOG + if use doc; then + cp -ar doc/* ${D}/usr/share/doc/${PF} + fi; + + # install translation files + cd ${S}/src/translations + insinto /usr/share/${PN}/i18n + for i in ${LANGS}; do + use linguas_${i} && [ -f ${PN}_${i}.qm ] && doins ${PN}_${i}.qm + done; + + # desktop file and icon + domenu ${FILESDIR}/${PN}.desktop + doicon ${FILESDIR}/${PN}.png +} + +pkg_postinst() { + echo + ewarn "If you want to use ifpgui without root-privileges, you can run" + ewarn "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + ewarn "or manually use the script" + ewarn "/usr/share/${PN}/nonroot.sh" + ewarn "to add approprate rules to your hotplug scripts" + echo +} + +pkg_config() { + ${ROOT}/usr/share/${PN}/nonroot.sh || die "config failed" +} |