Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41984 - Add amsn-0.90.ebuild for new version of AMSN messenger
Summary: Add amsn-0.90.ebuild for new version of AMSN messenger
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-17 18:37 UTC by Andrew a.k.a. Triad
Modified: 2004-03-15 12:33 UTC (History)
0 users

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


Attachments
amsn-0.90.ebuild (amsn-0.90.ebuild,1.82 KB, text/plain)
2004-02-18 07:23 UTC, Andrew a.k.a. Triad
Details
Patch between first and second ebuild (amsn-0.90.ebuild.diff,2.08 KB, patch)
2004-02-19 10:39 UTC, Patrick a.k.a. 'spantie'
Details | Diff
diff between portage and revisioned ebuild (amsn-0.90.ebuild.diff,2.19 KB, patch)
2004-02-19 11:46 UTC, Patrick a.k.a. 'spantie'
Details | Diff
new diff between portage and revisioned ebuild (amsn-0.90.ebuild.diff,2.21 KB, patch)
2004-02-20 00:38 UTC, Patrick a.k.a. 'spantie'
Details | Diff
New diff! (amsn-0.90.ebuild.diff,1.34 KB, patch)
2004-02-22 04:20 UTC, Patrick a.k.a. 'spantie'
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew a.k.a. Triad 2004-02-17 18:37:11 UTC
New version of AMSN messenger was released with an optional requirement to use buddy photos (which requires imagemagick).  so modified 0.80 ebuild and made 0.90 with optional use flag of imagemagick.  ebuild is as follows:

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $id$

S="${WORKDIR}/msn"
DESCRIPTION="Alvaro's Messenger client for MSN"
SRC_URI="mirror://sourceforge/${PN}/${P/./_}.tar.gz"
HOMEPAGE="http://amsn.sourceforge.net"

IUSE="gnome kde imlib imagemagick"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~amd64 ~ppc hppa"


DEPEND=">=dev-lang/tcl-8.3.3
	>=dev-lang/tk-8.3.3
	dev-tcltk/tls
	imlib? ( media-libs/imlib )
	imagemagick? ( media-gfx/imagemagick )"

src_compile() {

	if [ -n "`use imlib`" ]
	then
		einfo "Compiling the freedesktop notification plugin"
		cd ${S}/plugins/traydock
		econf || die
		make || die
	fi
}

src_install() {
	mkdir -p ${D}/usr/share/amsn/
	cp -a ${S}/* ${D}/usr/share/amsn/

	# Remove all CVS crap
	find ${D} -type d -name CVS -exec rm -rf {} \;

	if [ -n "`use gnome`" ]
	then
		dodir /usr/share/applications
		cp ${FILESDIR}/amsn.desktop ${D}/usr/share/applications
		einfo "Installing GNOME Icons in /usr/share/pixmaps"
		mkdir -p ${D}/usr/share/pixmaps
		cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/
	fi


	if [ -n "`use kde`" ]
	then
		dodir ${D}/usr/share/applnk
		cp ${FILESDIR}/amsn.desktop ${D}/usr/share/applnk/
		einfo "Installing KDE Icons in default theme"
		mkdir -p ${D}/${KDEDIR}/share/icons/default.kde
		cp -a ${S}/icons/* ${D}/${KDEDIR}/share/icons/default.kde
	fi

	if [ -n "`use imlib`" ]
	then
		einfo "Installing the freedesktop notification plugin"
		dodir /usr/lib/amsn/plugins/traydock
		mv ${D}/usr/share/amsn/plugins/traydock/libtray.so ${D}/usr/lib/amsn/plugins/traydock
		rm -rf ${D}/usr/share/amsn/plugins/traydock
		ln -s /usr/lib/amsn/plugins/traydock ${D}/usr/share/amsn/plugins/traydock
	else
		rm -rf ${D}/usr/share/amsn/plugins/traydock
	fi

	dodir /usr/bin/
	ln -s /usr/share/amsn/amsn ${D}/usr/bin/amsn

	dodoc TODO README FAQ

}


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 LuisMi Garcia 2004-02-18 04:46:36 UTC
I think we must have a amsn-skins ebuild too
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-18 06:05:31 UTC
can you please provide this as an attachment ?
Comment 3 Andrew a.k.a. Triad 2004-02-18 07:23:51 UTC
Created attachment 25854 [details]
amsn-0.90.ebuild

Here is ebuild attachement
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-02-18 08:46:59 UTC
For future reference the third comment line needs to have $Header: $, not $id$.  See /usr/portage/skel.ebuild for all the examples you'll ever need.
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-18 14:53:27 UTC
Version 0.90 is in portage.
Any one interested in making amsn-skins ?
Comment 6 Andrew a.k.a. Triad 2004-02-18 22:40:29 UTC
Created:

Bugzilla Bug 42112
add ebuild: amsn-skins-0.0.1.ebuild
Comment 7 Patrick a.k.a. 'spantie' 2004-02-19 10:39:09 UTC
Created attachment 25934 [details, diff]
Patch between first and second ebuild

Some minor (but in my opionion needed) changes to first ebuild.
Comment 8 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-19 11:10:28 UTC
Patrick: can you please send your patch agains the version of the ebuild in portage ?
Comment 9 Patrick a.k.a. 'spantie' 2004-02-19 11:46:19 UTC
Created attachment 25938 [details, diff]
diff between portage and revisioned ebuild

Here you go :)
Comment 10 Andrew a.k.a. Triad 2004-02-19 15:31:20 UTC
See you added:

+	rm -rf ${D}/icons

to ebuild.  Is this necesary.  Not all people use kde or gnome but still might want access to icons?  Just a thought.
Comment 11 Patrick a.k.a. 'spantie' 2004-02-20 00:38:23 UTC
Created attachment 25968 [details, diff]
new diff between portage and revisioned ebuild
Comment 12 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-21 05:39:21 UTC
In cvs now. Thanks Patrick
Comment 13 Patrick a.k.a. 'spantie' 2004-02-22 04:20:19 UTC
Created attachment 26090 [details, diff]
New diff!

Some way, the patching wasn't done right! CVS now contains:

DEPEND=">=dev-lang/tcl-8.3.3
	<snip>
	dev-tcltk/tls
	<snip>
	ssl? ( dev-tcltk/tls )

And more things went wrong. I.e. 
+		rm -rf ${D}/icons

See new diff!
Comment 14 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-22 15:14:09 UTC
Fixed the tls dep bug. But could not understand the need for the rm -rf ${D}/icons . There is no such directory being added here. Can you double check there the need for that?
Comment 15 Patrick a.k.a. 'spantie' 2004-02-23 12:15:28 UTC
Leave it out if you want to.
Comment 16 Don Seiler (RETIRED) gentoo-dev 2004-03-15 11:16:57 UTC
Can we close this bug out?
Comment 17 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-15 12:33:09 UTC
Solved. I was waiting for some input but this seems ok