This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Gentoo SVN ebuild available

Tags: None
(comma "," separated)
Sho
Registered Member
Posts
7
Karma
0

Gentoo SVN ebuild available

Mon Jun 12, 2006 1:59 pm
Hi guys,

I've made a little SVN ebuild for KTorrent, available for download here: http://www.eikehein.com/kde/ktorrent-svn.tar.bz2

In contrast to the ebuild available in the Portage tree, it will retrieve KTorrent's up-to-date sources from the KDE Subversion repository and compile those.

Just extract it into your overlay, and add ktorrent-svn to your ~arch keywords.

It's based on Jord Swart's popular amarok-svn ebuild: http://www.jordswart.org/archives/35

If it works well and you want to mirror it on the KTorrent website, please do.

Last edited by Sho on Fri Jul 28, 2006 2:59 pm, edited 1 time in total.
imported4-Ivan
Registered Member
Posts
819
Karma
0

Mon Jun 12, 2006 3:03 pm
Good. As soon as someone using Gentoo can confirm this ebuild works fine, I'm sure George will place the link on the website.
KarMax
Registered Member
Posts
7
Karma
0

works

Mon Jun 12, 2006 5:57 pm
Excellent work Sho.
I tested on Gentoo and it works.

I test it on an amd64 and x86 hosts, also the bug related to 64 bit users wanting to upgrade to SVN versions >= 510300 seems fixed.

Its better if the ebuild requiere kdelibs.. i mean:

Code: Select all
17c17
<       kde? ( || ( kde-base/konqueror kde-base/kdebase ) )"
---
>       kde? ( || ( kde-base/kdelibs ) )"


About the "need-kde 3.3" beware, i dont know if ktorrent will work on 3.3 maybe 3.4 its a better option (remember its a svn everytime-up-to-date version) (the web says that you have KDE 3.4 or later)

Also it will be better if you add the GNU MP library (libgmp) (dev-libs/gmp).

BTW as a gentoo user i only provide the ktorrent-svn-2.0.ebuild (IMO everybody who will use an ebuild from a svn version, will prefer that way)

Sho, well here is the ebuild with some modifications:

EDITED: I remove my ebuild, to avoid confusions, now the Sho ebuild, is great!

Last edited by KarMax on Mon Jun 12, 2006 8:23 pm, edited 1 time in total.


Gonzalo Martinez
Jabber: KarMax@jabber.org
Sho
Registered Member
Posts
7
Karma
0

Mon Jun 12, 2006 7:30 pm
I have updated the tarball with a new version of the ebuild, adopting KarMax' suggestions as well as other minor changes.

Changelog:
- Bumped minimum required KDE version to 3.4.
- Brought architecture keywords in line with the 2.0_beta1 ebuild (added ~sparc).
- Removed KDE from DEPEND entirely, as "need-kde 3.4" takes care of that.
- Added dependency on dev-libs/gmp.
- Added --enable-knetwork configure flag, in line with the tree ebuild.
- Removed references to amaroK from the CVS header (no functional change).
- Added IUSE as required by the Gentoo Development Guide.

Download including directory structure, Manifest and digest: http://www.eikehein.com/ktorrent-svn.tar.bz2

The ebuild alone:

Code: Select all
inherit kde subversion eutils flag-o-matic

DESCRIPTION="A BitTorrent program for KDE (SVN version)"
HOMEPAGE="http://www.ktorrent.org/"
ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/extragear/network/ktorrent"
ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/svn-src/"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

DEPEND="!net-p2p/ktorrent
        dev-libs/gmp"

need-kde 3.4

src_unpack() {
        ESVN_UPDATE_CMD="svn update -N"
        ESVN_FETCH_CMD="svn checkout -N"
        ESVN_REPO_URI=`dirname ${ESVN_REPO_URI}`
        subversion_src_unpack

        S=${WORKDIR}/${P}/admin
        ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kde-common/admin"
        subversion_src_unpack

        ESVN_UPDATE_CMD="svn up"
        ESVN_FETCH_CMD="svn checkout"
        S=${WORKDIR}/${P}/ktorrent
        ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/extragear/network/ktorrent"
        subversion_src_unpack

        S=${WORKDIR}/${P}
        cd ${S}
        make -f Makefile.cvs
}

src_compile() {
        export WANT_AUTOCONF=2.5
        export WANT_AUTOMAKE=1.6

        local myconf="--enable-knetwork"

        kde_src_compile
}

src_install() {
        kde_src_install
}
radfoj
Registered Member
Posts
20
Karma
0

Tue Jun 13, 2006 4:01 pm
Hi,

compiled and works like a charm. Here is a little about my box:
Code: Select all
Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-ck9 i686)
=================================================================
System uname: 2.6.16-ck9 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.1


If someone know, how to add "LINGUAS variable" (localisation) to this ebuild, it would be wonderful.

Thanks for you work.
KarMax
Registered Member
Posts
7
Karma
0

Tue Jun 13, 2006 7:53 pm
I dont want to generate confusion...

To use Linguas you need to add ( before inherit the kde eclass )

First the langs variables (just an example)
Code: Select all
LANGS="br es it"
LANGS_DOC="es it"


Second set:
Code: Select all
USE_KEG_PACKAGING=1


Now the kde eclass will pass the LANGS and LANGS_DOC and do the linguas_${lang}. (for each one of the langs.)

This will be used in the src_unpack but this ebuild is an svn and AFAIK this will not work, maybe Sho or somebody can afirm that.


Gonzalo Martinez
Jabber: KarMax@jabber.org
Sho
Registered Member
Posts
7
Karma
0

Tue Jun 13, 2006 8:30 pm
I'm looking into adding checkout declarations for the i18n data, if I can assemble it in the format expected by the KEG methods it should be compatible with LINGUAS as seen in KarMax' post.
Harshad
Registered Member
Posts
1
Karma
0

works great

Mon Jul 17, 2006 8:15 am
the ebuild works fine and so does the program.

when will 2.0 be released?
George
Moderator
Posts
5421
Karma
1

Re: works great

Mon Jul 17, 2006 8:20 am
Harshad wrote:the ebuild works fine and so does the program.

when will 2.0 be released?


Soon, 2.0rc1 is only a few bug fixes away and 2 weeks after that, 2.0 final.
mattlant
Registered Member
Posts
3
Karma
0

Latest masked ~amd64

Mon Aug 28, 2006 6:53 am
I am running a Turion 64 X2 (256k x 2 cache) and used the latest MASKED ebuild

Code: Select all
* net-p2p/ktorrent
     Available versions:  1.0 1.2 2.0 2.0.1
     Installed:           2.0.1
     Homepage:            http://ktorrent.pwsp.net/
     Description:         A BitTorrent program for KDE.


WHen i initially installed it my cflags were like:
CFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer"

and it crashed quite frequently and randomly. Without a good stack trace theres no point me even showing it.

I had tried many times to recompile and use 2.0 as well, with no luck.

Then, however, I stripped down cflags to just:
CFLAGS="-march=k8 -pipe"

and recompiled and it (2.0.1) has not crashed since recompiling. (the euild added -02)

I a not sure what -O level was last on the compile line, but I will assume -Os, hence the difference. Dont know why it made a difference, but I hope this may help any other x64 users.
skyphyr
Registered Member
Posts
36
Karma
0
OS

Mon Sep 04, 2006 10:02 pm
I had some problems with the ebuild and access violation - it's a bit of a hack to work around it for now, but I used FEATURES=userpriv - just in case someone else hits the problem.

Cheers,

Alan.
neuron
Registered Member
Posts
54
Karma
0

Sat Sep 30, 2006 10:32 pm
does this still work for people? This is what it installs for me:

Code: Select all
>>> Merging net-p2p/ktorrent-svn-2.0 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/ktorrent-svn-2.0/
>>> /usr/share/doc/ktorrent-svn-2.0/README.gz


and I need a bit more to run ktorrent :P
neuron
Registered Member
Posts
54
Karma
0

Sun Oct 01, 2006 10:53 am
for anyone else that needs this, change src_install to:

Code: Select all
src_install() {
   S=${WORKDIR}/${P}/ktorrent
   cd ${S} || die
   emake || die
   make DESTDIR="${D}" install || die
   #kde_src_install
}


and it will install properly.
Sho
Registered Member
Posts
7
Karma
0

Thu Oct 05, 2006 5:21 pm
I've updated the tarball with the installation fix, thanks.
maxime94
Registered Member
Posts
14
Karma
0

Tue Dec 12, 2006 7:08 pm
Thanks for the ebuild. I had access violations when using it, so I tried what skyphyr suggested (FEATURES="userpriv") and it worked fine.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]