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

gentoo cvs ebuild

Tags: None
(comma "," separated)
hds
Karma
0

gentoo cvs ebuild

Sun Jan 09, 2005 11:21 pm
hi,
i just realized that you have a amarok-cvs ebuild. however, it is missing the mysql USEflag. i modified it a bit, and added the mysql support. works for me:
[code:1]
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit kde-base

need-kde 3.2

# bluemchen.kde.org is up-to-date with kde\'s current cvs while anoncvs.kde.org is synced every 2 hours or so.
ECVS_SERVER=\"bluemchen.kde.org:/home/kde\"
KCVS_MODULE=kdeextragear-1
KCVS_SUBDIR=amarok
inherit kde-source

IUSE=\"cjk gstreamer xmms arts opengl xine libvisual noamazon mysql\"

DESCRIPTION=\"A user friendly IRC Client for KDE3.x\"
HOMEPAGE=\"http://amarok.kde.org\"
LICENSE=\"GPL-2\"
KEYWORDS=\"x86 ~ppc ~amd64\"

DEPEND=\">=kde-base/kdemultimedia-3.2
arts? ( >=kde-base/arts-1.2 )
gstreamer? ( >=media-libs/gst-plugins-0.8.1 )
opengl? ( virtual/opengl )
xmms? ( >=media-sound/xmms-1.2 )
xine? ( >=media-libs/xine-lib-1_rc4 )
libvisual? ( >=media-libs/libvisual-0.1.6 )

>=dev-util/pkgconfig-0.9.0
>=media-libs/taglib-1.3\"

src_compile() {

if ! use arts && ! use gstreamer && ! use xine
then die \"You must enable either Arts, Gstreamer, or Xine\"
fi

PREFIX=\"`kde-config --prefix`\"
myconf=\"`use_with arts` `use_with gstreamer` `use_with opengl` `use_with xine`\"

if use noamazon
then myconf=\"$myconf --disable-amazon\"
fi

if use mysql
then myconf=\"$myconf --enable-mysql\"
fi

kde_src_compile myconf configure
kde_src_compile make
}

src_install() {

kde_src_install
}

[/code:1]
small update (pic useflag)
Karma
0

Re:gentoo cvs ebuild

Mon Jan 10, 2005 2:25 am
just realized it compiles without \"pic\", which is usefull for us prelinkers :P
[code:1]
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit kde-base

need-kde 3.2

# bluemchen.kde.org is up-to-date with kde\'s current cvs while anoncvs.kde.org is synced every 2 hours or so.
ECVS_SERVER=\"bluemchen.kde.org:/home/kde\"
KCVS_MODULE=kdeextragear-1
KCVS_SUBDIR=amarok
inherit kde-source

IUSE=\"cjk gstreamer xmms arts opengl xine libvisual noamazon mysql pic\"

DESCRIPTION=\"A user friendly IRC Client for KDE3.x\"
HOMEPAGE=\"http://amarok.kde.org\"
LICENSE=\"GPL-2\"
KEYWORDS=\"x86 ~ppc ~amd64\"

DEPEND=\">=kde-base/kdemultimedia-3.2
arts? ( >=kde-base/arts-1.2 )
gstreamer? ( >=media-libs/gst-plugins-0.8.1 )
opengl? ( virtual/opengl )
xmms? ( >=media-sound/xmms-1.2 )
xine? ( >=media-libs/xine-lib-1_rc4 )
libvisual? ( >=media-libs/libvisual-0.1.6 )

>=dev-util/pkgconfig-0.9.0
>=media-libs/taglib-1.3\"

src_compile() {

if ! use arts && ! use gstreamer && ! use xine
then die \"You must enable either Arts, Gstreamer, or Xine\"
fi

PREFIX=\"`kde-config --prefix`\"
myconf=\"`use_with arts` `use_with gstreamer` `use_with opengl` `use_with xine`\"

if use noamazon
then myconf=\"$myconf --disable-amazon\"
fi

if use mysql
then myconf=\"$myconf --enable-mysql\"
fi

if use pic
then myconf=\"$myconf --with-pic\"
fi


kde_src_compile myconf configure
kde_src_compile make
}

src_install() {

kde_src_install
}

[/code:1]
PsyBlade
Karma
0

Re:gentoo cvs ebuild

Wed Feb 09, 2005 6:15 am
[code:1]
DESCRIPTION=\"A user friendly IRC Client for KDE3.x\"
[/code:1]

?
LightEater
Registered Member
Posts
19
Karma
0

Re:gentoo cvs ebuild

Wed Feb 09, 2005 3:39 pm
What? Are you trying to say that you don\'t like amaroK irc client?! ;)

btw, keywords should say ~x86, and you made a typo in DEPEND. Here\'s the corrections. If this is okay then it would be a good idea to replace the outdated version on the cvs page :)

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit kde-base

need-kde 3.2

# bluemchen.kde.org is up-to-date with kde\'s current cvs while anoncvs.kde.org is synced every 2 hours or so.
ECVS_SERVER="bluemchen.kde.org:/home/kde"
KCVS_MODULE=kdeextragear-1
KCVS_SUBDIR=amarok
inherit kde-source

IUSE="cjk gstreamer xmms arts opengl xine libvisual noamazon mysql pic"

DESCRIPTION="A user friendly IRC Client for KDE3.x"
HOMEPAGE="http://amarok.kde.org"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~amd64"

DEPEND=">=kde-base/kdemultimedia-3.2
arts? ( >=kde-base/arts-1.2 )
gstreamer? ( >=media-libs/gst-plugins-0.8.1 )
opengl? ( virtual/opengl )
xmms? ( >=media-sound/xmms-1.2 )
xine? ( >=media-libs/xine-lib-1_rc4 )
libvisual? ( >=media-libs/libvisual-0.1.6 )

>=dev-util/pkgconfig-0.9.0
>=media-libs/taglib-1.3"

src_compile() {

if ! use arts && ! use gstreamer && ! use xine
then die "You must enable either Arts, Gstreamer, or Xine"
fi

PREFIX="`kde-config --prefix`"
myconf="`use_with arts` `use_with gstreamer` `use_with opengl` `use_with xine`"

if use noamazon
then myconf="$myconf --disable-amazon"
fi

if use mysql
then myconf="$myconf --enable-mysql"
fi

if use pic
then myconf="$myconf --with-pic"
fi

kde_src_compile myconf configure
kde_src_compile make
}

src_install() {
kde_src_install
}


Hm, the code tag inserts a space in \'pkgconfig-0 .9.0\' in DEPEND.

Post edited by: LightEater, at: 2005/02/09 11:03
hds
Registered Member
Posts
194
Karma
0

Re:gentoo cvs ebuild

Sat Feb 12, 2005 11:58 am
thx for the edits. well, i simply took this from the amarok page, and it already sayed irc client and the typos have been in, though thx anyway ;)
actually as i mentioned above i just added the \"pic\" and \"mysql\" useflags.
LightEater
Registered Member
Posts
19
Karma
0

Re:gentoo cvs ebuild

Sat Apr 23, 2005 2:47 pm
I noticed that the cvs ebuild is not compatible with the split kde ebuilds and tries to pull a bunch of wierd stuff with USE="arts" ;) Nothing a quick copy&paste from the official 1.2.3 ebuild can\'t fix tho.
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit kde eutils

need-kde 3.2

# bluemchen.kde.org is up-to-date with kde\'s current cvs while anoncvs.kde.org is synced every 2 hours or so.
ECVS_SERVER="bluemchen.kde.org:/home/kde"
KCVS_MODULE=kdeextragear-1
KCVS_SUBDIR=amarok
inherit kde-source

IUSE="arts flac gstreamer kde mad mysql noamazon oggvorbis opengl xine xmms visualization"
# kde: enables compilation of the konqueror sidebar plugin

DESCRIPTION="amaroK - the audio player for KDE"
HOMEPAGE="http://amarok.kde.org"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~amd64"


RDEPEND="kde? ( || ( kde-base/konqueror kde-base/kdebase ) )
arts? ( kde-base/arts
|| ( ( kde-base/kdemultimedia-arts kde-base/akode )
kde-base/kdemultimedia ) )
opengl? ( virtual/opengl )
xmms? ( >=media-sound/xmms-1.2 )
xine? ( >=media-libs/xine-lib-1_rc4 )
>=media-libs/tunepimp-0.3.0
>=media-libs/taglib-1.3.1
gstreamer? ( >=media-libs/gst-plugins-0.8.6
mad? ( >=media-plugins/gst-plugins-mad-0.8.6 )
oggvorbis? ( >=media-plugins/gst-plugins-ogg-0.8.6
>=media-plugins/gst-plugins-vorbis-0.8.6 )
flac? ( >=media-plugins/gst-plugins-flac-0.8.6 ) )
mysql? ( >=dev-db/mysql-4 )
visualization? ( media-libs/libsdl
>=media-plugins/libvisual-plugins-0.2 )"

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

pkg_setup() {
if use arts && ! use xine && ! use gstreamer; then
ewarn "aRts support is deprecated, if you have problems please consider"
ewarn "enabling support for Xine or GStreamer"
ewarn "(emerge amarok again with USE=\\"xine\\" or USE=\\"gstreamer\\")."
ebeep 2
fi

if ! use arts && ! use xine && ! use gstreamer; then
eerror "amaroK needs either aRts (deprecated), Xine or GStreamer to work,"
eerror "please try again with USE=\\"arts\\", USE=\\"xine\\" or USE=\\"gstreamer\\"."
die
fi

# check whether kdelibs was compiled with arts support
kde_pkg_setup
}

src_compile() {
# amarok does not respect kde coding standards, and makes a lot of
# assuptions regarding its installation directory. For this reason,
# it must be installed in the KDE install directory.
PREFIX="`kde-config --prefix`"

myconf="$(use_with arts) $(use_with xine)
$(use_with gstreamer) $(use_enable mysql)
$(use_with opengl) $(use_enable !noamazon amazon)"

kde_src_compile
}


src_install() {

kde_src_install
}

(and something is wrong with attaching files :o)

Post edited by: LightEater, at: 2005/04/23 10:52
Russel
Karma
0

Re:gentoo cvs ebuild

Fri Apr 29, 2005 4:11 am
Can you please post the right and working ebuild on bugs.gentoo.org?
Would be nice, if it can be portage.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]