Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stardict-2.4.5 without Gnome: ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Sun Jan 01, 2006 11:00 am    Post subject: Stardict-2.4.5 without Gnome: ebuild Reply with quote

вот на коленке накорябал (просто поправил, ессно) ебилд, если кому нужен, пользуйтесь
можно совместно доработать и запостить в багзиллу :-)
Code:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/stardict-2.4.4.ebuild,v 1.3 2005/08/02 19:57:54 gustavoz Exp $

inherit gnome2 eutils

# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
#       their indexes seem to be in a different format. So we'll keep them
#       seperate for now.

IUSE="gnome"
DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
HOMEPAGE="http://stardict.sourceforge.net/ http://cosoft.org.cn/projects/stardict/"
SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
# when adding keywords, remember to add to stardict.eclass
KEYWORDS="~x86 ~ppc ~sparc ~amd64"


RDEPEND="
        gnome? ( >=gnome-base/libbonobo-2.2.0
        >=gnome-base/libgnome-2.2.0
        >=gnome-base/libgnomeui-2.2.0
        >=gnome-base/gconf-1.2
        >=gnome-base/orbit-2.6 )

        >=dev-libs/popt-1.7
        >=sys-libs/zlib-1.1.4
        >=x11-libs/gtk+-2"
# app-text/scrollkeeper"

DEPEND="${RDEPEND}
        dev-util/pkgconfig"

src_unpack() {
        unpack ${A}
        use gnome && gnome2_omf_fix
        gnome2_omf_fix
}

src_compile() {
        use !gnome && myconf="${myconf} --disable-gnome-support"
        econf ${myconf}
        emake || die
}

src_install() {
        use gnome && gnome2_src_install
        gnome2_src_install

        # dictionary index generation files
        exeinto /usr/share/stardict/tools
        doexe ${S}/src/tools/{dictd2dic,directory2dict,olddic2newdic,oxford2dic,pydict2dict,wquick2dict,stardict_dict_update}
}

pkg_postinst() {
        einfo "You will now need to install stardict dictionary files. If"
        einfo "you have not, execute the below to get a list of dictionaries:"
        einfo
        einfo "  emerge -s stardict-"
        einfo
        ewarn "If you upgraded from 2.4.1 or lower and use your own dictionary"
        ewarn "files, you'll need to run: /usr/share/stardict/tools/stardict_dict_update"
}

сижу под кедами, собирается нормально, но досконально с флагами я не разбирался, есть ли интеграция и прочее подобное, что можно было бы включить...
УДАЧИ !!!

EDIT:
Ждать не стал, запостил в багзиллу
прошу потестить :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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