Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39659 - mldonkey cvs ebuild
Summary: mldonkey cvs ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-28 05:53 UTC by nillekind
Modified: 2004-02-29 20:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nillekind 2004-01-28 05:53:32 UTC
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-cvs.ebuild,v 1.2 2003/02/13 15:20:48 conner Exp $

ECVS_AUTH="ext"
ECVS_USER="anoncvs"
# NOTE: CVS ACCESS DONE VIA HTTPS
#ECVS_SERVER="subversions.gnu.org:443/cvsroot/mldonkey"
ECVS_SERVER="savannah.nongnu.org:/cvsroot/mldonkey"
#ECVS_SERVER="cvs.mldonkey.berlios.de:/cvsroot/mldonkey"
ECVS_MODULE="mldonkey"
ECVS_CVS_RETRIES="3"
ECVS_CVS_OPTIONS="-dP"
# Release Branch TAG goes here
ECVS_CO_OPTS=""
PANGO_VERSION="latest"

inherit cvs

IUSE="gtk pthread mlnomultinet mldonkeypango"

S=${WORKDIR}/${ECVS_MODULE}

DESCRIPTION="edonkey, opennap,... client written in ocaml"
HOMEPAGE="http://www.nongnu.org/mldonkey/"

SRC_URI=""

LICENSE="GPL-1"
SLOT="0"
KEYWORDS="x86"

DEPEND="gtk? ( >=lablgtk-1.2.3 )
        >=dev-lang/ocaml-3.06
        sys-devel/libperl"




src_compile() {
        use gtk || export GTK_CONFIG="no"
        cd ${S}

        patch -p0 -E -s < ${FILESDIR}/servers.diff
#       patch -p0 -E -s < ${FILESDIR}/suxxx-min-users-on-servers2.diff

        local myconf
        if [ -n "`use mldonkeypango`"  ]; then
                cd ${S}
                wget ftp://ftp.berlios.de/pub/${ECVS_MODULE}/pango/pango-${PANGO_VERSION}.tar.gz
                tar -xzf pango-${PANGO_VERSION}.tar.gz
                patch -p0 -E -s < pango.patch || die "pango patch failed to apply"
        fi
        if [ -n "`use pthread`" ]
        then
                myconf="${myconf} --enable-pthread"
        fi
        if [ -n "`use mlnomultinet`" ]
        then
                myconf="${myconf} --disable-multinet"
        fi



        # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
        econf \
                --sysconfdir=/etc/mldonkey \
                --sharedstatedir=/var/mldonkey \
                --localstatedir=/var/mldonkey \
                ${myconf}
        emake || die
}

src_install() {
        into /usr
        dobin mlnet mlchat
        for i in mlgui mlnet+gui mlguistarter mlim
        do
                if [[ -f ${i} ]]
                then
                        dobin ${i}
                fi
        done

        for i in AUTHORS BUGS COPYING ChangeLog Developers.txt ed2k_links.txt \
                         Readme.txt TODO;
        do
                dodoc distrib/${i}
        done

        dohtml FAQ.html

        insinto /usr/share/doc/${PF}/scripts
        for i in kill_mldonkey mldonkey_command mldonkey_previewer;
        do
                doins distrib/${i}
        done

        insinto /usr/share/doc/${PF}/scripts/ed2k_submit
        echo "Ignore CVS error:"
        doins distrib/ed2k_submit/*

        insinto /usr/share/doc/${PF}/distrib
        for i in servers.ini directconnect.ini;
        do
                doins distrib/${i}
        done
        into /etc/init.d
        doins ${FILESDIR}/mldonkey
}

pkg_postinst() {
        einfo "To start mldonkey, copy the contents of \$doc/distrib in a"
        einfo "writable directory, and start mldonkey from there."
        einfo "Eg: cp everything to /home/user1/mldonkey"
        einfo "then: cd /home/user1/mldonkey && mldonkey >> mld.log &"
        echo
        einfo "If you want to use pthreads, do:"
        einfo "USE=pthread emerge mldonkey-cvs"
        einfo "If you want to disable multinet support, do:"
        einfo "USE=mlnomultinet emerge mldonkey-cvs"
}


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 nillekind 2004-01-28 05:58:21 UTC
delete line

        patch -p0 -E -s < ${FILESDIR}/servers.diff
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-23 10:33:32 UTC
Why do you need a cvs ebuild for this application?
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-29 20:43:24 UTC
there's really no need for a cvs ebuild here...