# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Short one-line description of this package. DESCRIPTION="Pybliographer is a tool for working with bibliographic databases" # Homepage, not used by Portage directly but handy for developer reference HOMEPAGE="http://pybliographer.org" # Point to any required sources; these will be automatically downloaded by # Portage. SRC_URI="mirror://sourceforge/pybliographer/${P}.tar.gz" # License of the package. This must match the name of file(s) in # /usr/portage/licenses/. For complex license combination see the developer # docs on gentoo.org for details. LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" # Comprehensive list of any and all USE flags leveraged in the ebuild, # with the exception of any ARCH specific flags, i.e. "ppc", "sparc", # "x86" and "alpha". This is a required variable. If the # ebuild doesn't use any USE flags, set to "". IUSE="" DEPEND=">=dev-lang/python-2.3.3 >=dev-libs/glib-2.2.3 >=app-text/recode-3.6 >=dev-python/gnome-python-2.0.0 >=dev-python/python-bibtex-1.1.93.1" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. S will get a default setting of ${WORKDIR}/${P} # if you omit this line. S=${WORKDIR}/${P} src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" make || die "make failed" } src_install() { make \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ install || die dodoc AUTHORS COPYING ChangeLog-1.0 ChangeLog-1.2 INSTALL NEWS TODO README } pkg_preinst() { einfo "The user merging this ebuild needs, most often root, needs to be able to run X applications." einfo "This is needed because the configure step check for pyphon by calling X." einfo "If you ge the message\" cannot open display: :0.0\" when you run an X application as root," einfo "then you need to allow root to run X applications." einfo "To do so, do as follows:" einfo "root # xauth" einfo "Using authority file /root/.Xauthority" einfo "xauth> merge /home/unruly/.Xauthority" einfo "2 entries read in: 2 new, 0 replacements" einfo "xauth> exit" einfo "Writing authority file /root/.Xauthority" einfo "In my particular setup, user 'unruly' had no problems running X apps" einfo "Thanks \"UnrulyGrrl99\" for this tip." einfo "For more info, see http://forums.gentoo.org/viewtopic.php?t=106515&highlight=xhost+unable+open+display+0+0" einfo "Waiting for 20 seconds to give you time to read this." sleep 20 }