# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Web spider for downloading thumbnail galleries." HOMEPAGE="http://fetchgals.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" LICENSE="public-domain" SLOT="0" KEYWORDS="~x86" IUSE="offensive" DEPEND="dev-perl/Filesys-Df dev-perl/libwww-perl" src_unpack() { if use! offensive; then eerror "This package is only available if you enable the" eerror "offensive useflag by using:" eerror " 'USE=\"offensive\" emerge fetchgals" eerror "or something like that" die "This package is offending" fi unpack ${A} cd "${S}" } src_install() { dobin fetchgals.pl findtgps.pl || die "dobin failed" insinto "/usr/share/fetchgals" doins tgps tgps_huge || die "doins failed" dodoc README || die "dodoc failed" doman fetchgals.1 findtgps.1 || die "doman failed" } pkg_postinst() { ewarn "This tools is used to download material only suitable" ewarn "if you are at least at the age of 21. If you are no," ewarn "type \"emerge -C fetchgals; emerge supertux\" and have" ewarn "some children compatible fun." echo einfo "There are 2 tgps files (used to find galleries) installed" einfo "- /usr/share/fetchgals/tgps The small file" einfo "- /usr/share/fetchgals/tgps_huge The huge file" einfo "" einfo "For example run \"cp /usr/share/fetchgals/tgps . ;fetchgals.pl -find_galleries" }