Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amsn-0.98.4.ebuild for gentoo
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
236665
n00b
n00b


Joined: 03 Nov 2010
Posts: 36

PostPosted: Thu Dec 16, 2010 11:00 pm    Post subject: amsn-0.98.4.ebuild for gentoo Reply with quote

Hi for all, I created an ebuild for the updated version of amsn, I just change the download direction of amsn 0.98.3 by the current version 0.98.4, because the current is not yet in portage and amsn main page (in gentoo downloads).

My ebuild is on: https://bugs.gentoo.org/81893

you must donwload the amsn-0.98.4.ebuild or

copy and paste it in a file text and save as amsn-0.98.4.ebuild:

Quote:

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.98.3.ebuild,v 1.6 2010/10/15 22:00:57 ranger Exp $

EAPI=2

inherit eutils fdo-mime gnome2-utils

MY_P=${P/_rc/RC}
S="${WORKDIR}/${MY_P}"

DESCRIPTION="Alvaro's Messenger client for MSN"
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${MY_P}-src.tar.bz2"
HOMEPAGE="http://www.amsn-project.net"

# The tests are interactive
RESTRICT="test"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 hppa ppc -sparc x86"
IUSE="debug"

DEPEND=">=dev-lang/tcl-8.4
>=dev-lang/tk-8.4
media-libs/jpeg
media-libs/libpng
>=dev-tcltk/snack-2.2.10
>=net-libs/gupnp-igd-0.1.3
media-libs/libv4l"
# >=net-libs/farsight2-0.0.14
# >=media-libs/gstreamer-0.10.23
# >=media-libs/gst-plugins-base-0.10.23

RDEPEND="${DEPEND}
>=dev-tcltk/tls-1.5
media-video/ffmpeg[encode]"
# >=media-libs/gst-plugins-good-0.10.15
# >=media-libs/gst-plugins-bad-0.10.13
# >=media-plugins/gst-plugins-ffmpeg-0.10.7

src_prepare() {
epatch "${FILESDIR}/${PN}-0.98-noautoupdate.patch"
# only portage should strip files, bug 285682
sed -i -e "s/LDFLAGS += -s/LDFLAGS += /" Makefile.in || die "sed failed"
}

src_configure() {
econf $(use_enable debug) || die "configure script failed"
}

src_install() {
make DESTDIR="${D}" install || die
dodoc AGREEMENT TODO README FAQ CREDITS

domenu amsn.desktop
sed -i -e s:.png:: "${D}/usr/share/applications/amsn.desktop"

cd desktop-icons
for i in *; do
if [ -e ${i}/msn.png ]; then
insinto /usr/share/icons/hicolor/${i}/apps
doins ${i}/msn.png
fi
done
}

pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update

ewarn "You might have to remove ~/.amsn prior to running as user if amsn hangs on start-up."
}

pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}


then you put it (as root) into /usr/portage/net-im/amsn or your custom portage (recommended, so the ebuild is not cleared when you do emerge - sync)

and...

In terminal you type:

ebuild amsn-0.98.4.ebuild digest

and then

emerge -av amsn
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 451

PostPosted: Tue Jan 04, 2011 10:24 pm    Post subject: Reply with quote

I get the following error:
Code:
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/local/portage/net-im/amsn/files/amsn-0.98-noautoupdate.patch
 *   ( amsn-0.98-noautoupdate.patch )

 * ERROR: net-im/amsn-0.98.4 failed:
 *   Cannot find $EPATCH_SOURCE!
Back to top
View user's profile Send private message
236665
n00b
n00b


Joined: 03 Nov 2010
Posts: 36

PostPosted: Wed Jan 05, 2011 12:16 am    Post subject: Reply with quote

samo wrote:
I get the following error:
Code:
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/local/portage/net-im/amsn/files/amsn-0.98-noautoupdate.patch
 *   ( amsn-0.98-noautoupdate.patch )

 * ERROR: net-im/amsn-0.98.4 failed:
 *   Cannot find $EPATCH_SOURCE!


hi, copy your "amsn-0.98-noautoupdate.patch" file from (/usr/portage/net-im/amsn/files/) to local portage (in files's folder) and try again!!

example for your case (you must be root):

Step 1:

Quote:

cd /usr/local/portage/net-im/amsn/


Step 2:

Quote:

mkdir ./files


Quote:

cd ./files


Step 3:

Quote:

cp -R /usr/portage/net-im/amsn/files/amsn-0.98-noautoupdate.patch ./


Step 4:

Quote:

cd ..


Quote:

ebuild amsn-0.98.4.ebuild digest


Step 5:

Emerge again
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 451

PostPosted: Wed Jan 05, 2011 5:49 pm    Post subject: Reply with quote

Thanks, now it works
Back to top
View user's profile Send private message
236665
n00b
n00b


Joined: 03 Nov 2010
Posts: 36

PostPosted: Thu Jan 06, 2011 2:32 am    Post subject: Reply with quote

samo wrote:
Thanks, now it works


8)
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