Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CoolReader v3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
shurutov
n00b
n00b


Joined: 05 Jun 2009
Posts: 5
Location: Moscow

PostPosted: Fri Jun 05, 2009 12:15 pm    Post subject: CoolReader v3 Reply with quote

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
View user's profile Send private message
Will Scarlet
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 239

PostPosted: Fri Jun 12, 2009 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum