View previous topic :: View next topic |
Author |
Message |
shurutov n00b
Joined: 05 Jun 2009 Posts: 5 Location: Moscow
|
Posted: Fri Jun 05, 2009 12:15 pm Post subject: CoolReader v3 |
|
|
Follow ebuild for subj v3.0.14.
Code: | # Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_P_ARCH="cr_${PV}"
MY_P="cr-${PV}"
S="${WORKDIR}/${MY_P}"
HYP_ARCH="AlReader2.Hyphen.zip"
DESCRIPTION="CoolReader - reader of fictionbook texts"
HOMEPAGE="http://www.coolreader.org/"
SRC_URI="mirror://sourceforge/crengine/${MY_P_ARCH}-0ubuntu1.tar.gz
hyphen? ( http://alreader.kms.ru/AlReader/${HYP_ARCH} )"
LICENSE="GPLv2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="hyphen"
DEPEND="x11-libs/wxGTK
app-arch/unzip"
RDEPEND="media-fonts/corefonts"
src_unpack() {
unpack ${A}
use hyphen && unpack ${HYP_ARCH}
}
src_compile() {
cd ${S}
sh macros/autogen.sh
local myconf=" --prefix=/usr"
econf ${myconf} || die "No configure!"
emake || die "No make"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
if use hyphen; then
cd ${WORKDIR}
insinto /usr/share/crengine
find . -name "*hyphen*pdb" -exec \
doins {} \;
fi
dosym ../fonts/corefonts /usr/share/crengine/fonts
}
|
Put it to ${PORTDIR_OVERLAY}/app-text/coolreader/coolreader-3.0.14.ebuild
then ebuild ${PORTDIR_OVERLAY}/app-text/coolreader/coolreader-3.0.14.ebuild digest
then ACCEPT_KEYWORDS="~x86" USE="hyphen" emerge -av coolreader
We have installed coolreader in our system!
PS. Sorry for my english. _________________ WBR, Shurutov Michail |
|
Back to top |
|
|
Will Scarlet Apprentice
Joined: 19 Mar 2004 Posts: 239
|
Posted: Fri Jun 12, 2009 3:49 pm Post subject: |
|
|
Maybe you should post your ebuild to Gentoo Bugs. There is already a bug open for it at https://bugs.gentoo.org/show_bug.cgi?id=269110, so it appears that some people are interested in it.
Also, it looks like there is a new version, so an update to your ebuild might be in order (if you so choose). _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. |
|
Back to top |
|
|
|