+++ /dev/null
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-inherit eutils
-
-DESCRIPTION="Script to manage eBooks in Gentoo"
-HOMEPAGE="http://www.josealberto.org/blog/2005/11/28/ebookmerge/"
-SRC_URI="mirror://gentoo/${P}.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~x86"
-IUSE=""
-
-DEPEND="app-shells/bash"
-RDEPEND="${DEPEND}"
-
-S=${WORKDIR}
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-updates.patch"
-}
-
-src_install() {
- newbin ${P} ebookmerge.sh
-}
-
-pkg_postinst() {
- elog
- elog "Need help? Just run:"
- elog "ebookmerge.sh -h"
- elog
- elog "You first must run:"
- elog "ebookmerge.sh -r"
- elog
- elog "Use -m for an alternative mirror."
- elog
-}
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-DESCRIPTION="Script to manage eBooks in Gentoo"
-HOMEPAGE="http://www.josealberto.org/blog/2005/11/28/ebookmerge/"
-SRC_URI="mirror://gentoo/${P}.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ia64 ~ppc ~ppc64 s390 sh ~x86"
-IUSE=""
-
-DEPEND="app-shells/bash"
-RDEPEND="${DEPEND}"
-
-S=${WORKDIR}
-
-src_install() {
- newbin ${P} ebookmerge.sh || die
-}
-
-pkg_postinst() {
- elog
- elog "Need help? Just run:"
- elog "ebookmerge.sh -h"
- elog
- elog "You first must run:"
- elog "ebookmerge.sh -r"
- elog
- elog "Use -m for an alternative mirror."
- elog
-}
+++ /dev/null
---- /usr/portage/distfiles/ebookmerge-0.9.3 2006-10-13 05:08:02.000000000 -0700
-+++ ebookmerge-0.9.3 2011-10-29 18:56:39.000000000 -0700
-@@ -8,9 +8,10 @@
- #-----------------------------------------------------------------------
-
- NO_ARGS=0
--EBDIR="$HOME/.devhelp/books"
-+EBDIR="$HOME/.local/share/devhelp/books"
- DOWNDIR="$PWD"
- TMPDIR=$(mktemp -d)
-+BASE_URL="http://htmlhelp.googlecode.com/files/"
-
- # mktemp -d > /tmp/ebookmergetmpdir
- # chmod 666 /tmp/ebookmergetmpdir
-@@ -126,12 +127,12 @@
- if [ -n "$optl" ] ; then
- [ ! -f ${EBDIR}/.urls.ebook ] && eerror "First you must use -r option" && exit 1
-
-- cat ${EBDIR}/.urls.ebook | awk 'BEGIN { FS="/" } { print $6}' > ${EBDIR}/.list.ebook
-+ cat ${EBDIR}/.urls.ebook | awk 'BEGIN { FS="/" } { print $5}' > ${EBDIR}/.list.ebook
-
- ls ${EBDIR} > ${EBDIR}/.installed.ebook
- NUMBER=$(cat ${EBDIR}/.list.ebook | wc -l)
-
-- einfo "List of know eBooks :"
-+ einfo "List of known eBooks :"
- cat ${EBDIR}/.list.ebook
-
- einfo "Total eBooks : ${BOLD}$NUMBER${NORMAL}"
-@@ -141,17 +142,17 @@
- fi
-
- if [ -n "$optr" ] ; then
-- einfo "Dowloading list from http://htmlhelp.berlios.de..."
-+ einfo "Dowloading list from ${BASE_URL} ..."
- cd ${EBDIR}
-
- if [ -n "$optn" ] ; then
-- wget --no-cache -q ftp://ftp.berlios.de/pub/htmlhelp/
-+ wget --no-cache -q -k ${BASE_URL}
- else
-- wget -q ftp://ftp.berlios.de/pub/htmlhelp/
-+ wget -q -k ${BASE_URL}
- fi
--
-- cat index.html | gawk -F\" '{print $2}' | sed -e '1 d' -e '/^[ ]*$/d' -e '/[hc][thl][bmp]$/d' > ${EBDIR}/.urls.ebook
-- rm index.html
-+ ## below print field is still 2 for google code, with extra grep
-+ grep tgz list | grep Download | gawk -F\" '{print $2}' | sed -e '/^[ ]*$/d' -e '/[hc][thl][bmp]$/d' > ${EBDIR}/.urls.ebook
-+ rm list
-
- einfo "Dowloaded. Use ${BOLD}-l${NORMAL} for a list."
- fi
-@@ -176,9 +177,9 @@
- einfo "Dowloading eBook $optd in $DOWNDIR..."
-
- if [ -n "$optn" ] ; then
-- wget --no-cache -q -c ftp://ftp.berlios.de/pub/htmlhelp/$optd -P$DOWNDIR
-+ wget --no-cache -q -c $BASE_URL/$optd -P$DOWNDIR
- else
-- wget -q -c ftp://ftp.berlios.de/pub/htmlhelp/$optd -P$DOWNDIR
-+ wget -q -c $BASE_URL/$optd -P$DOWNDIR
- fi
-
- einfo "Dowloaded."
-@@ -207,9 +208,9 @@
- einfo "Dowloading eBook $optd in $TMPDIR..."
-
- if [ -n "$optn" ] ; then
-- wget --no-cache -q -c ftp://ftp.berlios.de/pub/htmlhelp/$opte -P$TMPDIR
-+ wget --no-cache -q -c $BASE_URL/$opte -P$TMPDIR
- else
-- wget -q -c ftp://ftp.berlios.de/pub/htmlhelp/$opte -P$TMPDIR
-+ wget -q -c $BASE_URL/$opte -P$TMPDIR
- fi
- einfo "Dowloaded."
- $0 -i ${TMPDIR}/$opte