# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-pda/qtopia-desktop-bin/qtopia-desktop-bin-2.2.0.ebuild,v 1.1 2006/07/09 05:16:21 nerdboy Exp $ inherit eutils rpm multilib REV="1" QD="/opt/QtopiaDesktop" S="${WORKDIR}" DESCRIPTION="Qtopia Deskyop sync application for Zaurus PDA's" SRC_URI="ftp://ftp.trolltech.com/qtopia/desktop/RedHat9.0/qtopia-desktop-${PV}-${REV}-redhat9.i386.rpm" HOMEPAGE="http://www.trolltech.com/developer/downloads/qtopia/desktopdownloads" LICENSE="trolltech_PUL-1.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="virtual/libc || ( x11-libs/libX11 virtual/x11 ) amd64? ( app-emulation/emul-linux-x86-xlibs )" RESTRICT="nomirror nostrip" pkg_setup() { # This is a binary x86 package => ABI=x86 has_multilib_profile && ABI="x86" } pkg_unpack() { rpm_src_unpack } src_compile() { :; } src_install() { dodir ${QD} # Too many subdirs and files for individual ebuild commands # Isn't there a better way? cp -a ${S}/${QD}/qtopiadesktop ${D}${QD} local libdir="lib32" if has_multilib_profile ; then libdir=$(get_abi_LIBDIR x86) fi into ${QD} dolib.so ${S}/${QD}/lib/lib* rm -f ${S}/${QD}/lib/*.prl exeinto ${QD}/bin doexe ${S}/${QD}/bin/* docinto /usr/share/doc/${P} dodoc ${S}/${QD}/LICENSE.US dodoc ${S}/${QD}/README.html dodoc ${FILESDIR}/usb0.conf rm -f ${S}/${QD}/LICENSE* echo "PATH=${QD}/bin" > 37qtopia-desktop-bin echo "LDPATH=${QD}/${libdir}" >> 37qtopia-desktop-bin doenvd 37qtopia-desktop-bin } pkg_postinst() { einfo " Finished installing Qtopia Desktop ${PV}-${REV} into ${QD}" einfo einfo " To start Qtopia Desktop, run:" einfo einfo " $ qtopiadesktop" einfo einfo "See the usb0.conf file for a static network configuration for the" einfo "Zaurus cradle interface (it works with an SL-5x00). Note the old" einfo "way of adding a config script to /etc/hotplug/usb also works, but" einfo "depends on the desktop kernel version and module name, since the" einfo "latest 2.6.16 module is cdc_ether for older models of the Zaurus" einfo "(such as above) running OZ with kernel 2.4.x." einfo }