Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134375 - net-im/amsn-svn ebuild
Summary: net-im/amsn-svn ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-05-25 18:36 UTC by Víctor Enríquez
Modified: 2007-05-18 12:25 UTC (History)
1 user (show)

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


Attachments
amsn-svn-9999.ebuild (amsn-svn-9999.ebuild,2.53 KB, text/plain)
2006-05-25 18:37 UTC, Víctor Enríquez
Details
-r1 of my ebuild (amsn-svn-9999-r1.ebuild,2.54 KB, text/plain)
2006-05-27 03:57 UTC, Víctor Enríquez
Details
New amsn-svn ebuild updated (amsn-svn-9999-r4.ebuild,1.90 KB, text/plain)
2006-06-27 08:57 UTC, Víctor Enríquez
Details
amsn-svn-9999-r4.ebuild (amsn-svn-9999-r4.ebuild,1.89 KB, text/plain)
2006-06-27 10:42 UTC, Víctor Enríquez
Details
amsn-svn-9999-r5.ebuild (amsn-svn-9999-r5.ebuild,2.01 KB, text/plain)
2006-06-29 12:42 UTC, Víctor Enríquez
Details
amsn-svn-9999-r6.ebuild (amsn-svn-9999-r6.ebuild,2.14 KB, text/plain)
2006-11-17 07:53 UTC, Víctor Enríquez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Víctor Enríquez 2006-05-25 18:36:32 UTC
Well I made this amsn-svn ebuild, it's a bit tricky but i think it works well and can serve as a start point to clean de amsn-0.95 ebuild currently in portage please take a look at it.
Comment 1 Víctor Enríquez 2006-05-25 18:37:17 UTC
Created attachment 87521 [details]
amsn-svn-9999.ebuild
Comment 2 Víctor Enríquez 2006-05-25 18:42:15 UTC
Im new to Bugzilla I dont know if the ebuild have been uploaded well so I copy&paste it here:


# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.95-r2.ebuild,v 1.1 2006/01/03 02:14:40 tester Exp $

#S="${WORKDIR}/${P/./_}"

DESCRIPTION="Alvaro's Messenger client for MSN"
SRC_URI="http://amsn.sourceforge.net/amsn_dev.tar.gz"
HOMEPAGE="http://amsn.sourceforge.net"
#RESTRICT="test"

IUSE=""

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


DEPEND=">=dev-lang/tcl-8.4 >=dev-lang/tk-8.4"

RDEPEND="${DEPEND} dev-tcltk/tls"

src_compile() {
      
        cd "${WORKDIR}"/msn
        mv * ../
        cd ../
        econf || die
	make || die
}

src_install() {
        dodir /usr/share/amsn
        dodir /usr/bin  #creamos la estructura de instalacion
        dodir /usr/share/icons
        dodir /usr/share/applications

        cd "${WORKDIR}" #entramos para copiar todo en sus directorios
        #documentacion
        cp -pPR INSTALL CREDITS FAQ GNUGPL HELP README TODO AGREEMENT remote.help ${D}/usr/share/amsn
        cp -pR docs ${D}/usr/share/amsn
        #copiamos directorio por directorio mas archivos icons lang skins utils plugins
        cp -pR icons ${D}/usr/share/
	cp -pR lang  ${D}/usr/share/amsn
        cp -pR skins ${D}/usr/share/amsn
        cp -pR utils ${D}/usr/share/amsn
        cp -pR plugins ${D}/usr/share/amsn
        
        #files to exclude lang/genpage.c lang/addkey.tcl lang/lang1.tmpl lang/lang2.tmpl lang/lang3.tmpl lang/langchk.sh lang/complete.pl 
        # lang/genlangfiles.c utils/webcamsn/webcamsn.tcl
        #
         cd ${D}/usr/share/amsn/lang
         rm genpage.c addkey.tcl lang1.tmpl lang2.tmpl lang3.tmpl langchk.sh complete.pl genlangfiles.c
         cd ${D}/usr/share/amsn/utils/webcamsn/
         rm webcamsn.tcl
         
        #volvemos al directorio de trabajo copiamos los ejecutables principales y otras cosas
        cd ${WORKDIR}
        cp *.tcl amsn amsn-remote amsn.desktop amsn-remote-CLI hotmlog.htm langlist sndplay ${D}/usr/share/amsn
        
        #queda enlazar los binarios
        ln -sf /usr/share/amsn/amsn ${D}/usr/bin/amsn
        ln -sf /usr/share/amsn/amsn-remote-CLI ${D}/usr/bin/amsn-remote-CLI
        ln -sf /usr/share/amsn/amsn-remote  ${D}/usr/bin/amsn-remote
        
        #y a
Comment 3 Víctor Enríquez 2006-05-25 18:42:15 UTC
Im new to Bugzilla I dont know if the ebuild have been uploaded well so I copy&paste it here:


# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.95-r2.ebuild,v 1.1 2006/01/03 02:14:40 tester Exp $

#S="${WORKDIR}/${P/./_}"

DESCRIPTION="Alvaro's Messenger client for MSN"
SRC_URI="http://amsn.sourceforge.net/amsn_dev.tar.gz"
HOMEPAGE="http://amsn.sourceforge.net"
#RESTRICT="test"

IUSE=""

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


DEPEND=">=dev-lang/tcl-8.4 >=dev-lang/tk-8.4"

RDEPEND="${DEPEND} dev-tcltk/tls"

src_compile() {
      
        cd "${WORKDIR}"/msn
        mv * ../
        cd ../
        econf || die
	make || die
}

src_install() {
        dodir /usr/share/amsn
        dodir /usr/bin  #creamos la estructura de instalacion
        dodir /usr/share/icons
        dodir /usr/share/applications

        cd "${WORKDIR}" #entramos para copiar todo en sus directorios
        #documentacion
        cp -pPR INSTALL CREDITS FAQ GNUGPL HELP README TODO AGREEMENT remote.help ${D}/usr/share/amsn
        cp -pR docs ${D}/usr/share/amsn
        #copiamos directorio por directorio mas archivos icons lang skins utils plugins
        cp -pR icons ${D}/usr/share/
	cp -pR lang  ${D}/usr/share/amsn
        cp -pR skins ${D}/usr/share/amsn
        cp -pR utils ${D}/usr/share/amsn
        cp -pR plugins ${D}/usr/share/amsn
        
        #files to exclude lang/genpage.c lang/addkey.tcl lang/lang1.tmpl lang/lang2.tmpl lang/lang3.tmpl lang/langchk.sh lang/complete.pl 
        # lang/genlangfiles.c utils/webcamsn/webcamsn.tcl
        #
         cd ${D}/usr/share/amsn/lang
         rm genpage.c addkey.tcl lang1.tmpl lang2.tmpl lang3.tmpl langchk.sh complete.pl genlangfiles.c
         cd ${D}/usr/share/amsn/utils/webcamsn/
         rm webcamsn.tcl
         
        #volvemos al directorio de trabajo copiamos los ejecutables principales y otras cosas
        cd ${WORKDIR}
        cp *.tcl amsn amsn-remote amsn.desktop amsn-remote-CLI hotmlog.htm langlist sndplay ${D}/usr/share/amsn
        
        #queda enlazar los binarios
        ln -sf /usr/share/amsn/amsn ${D}/usr/bin/amsn
        ln -sf /usr/share/amsn/amsn-remote-CLI ${D}/usr/bin/amsn-remote-CLI
        ln -sf /usr/share/amsn/amsn-remote  ${D}/usr/bin/amsn-remote
        
        #y añadir el icono
        cp amsn.desktop ${D}/usr/share/applications/amsn.desktop
 
        #cd ${D}/usr/share/amsn/docs
        #dodoc `echo "ls *.*"`
}

pkg_postinst() {

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

}


Comment 4 Víctor Enríquez 2006-05-27 03:57:07 UTC
Created attachment 87627 [details]
-r1 of my ebuild

Revision one of my ebuild, i have cleaned the ebuild, make doc install and added the icon to menu.
Comment 5 Víctor Enríquez 2006-06-27 08:57:35 UTC
Created attachment 90282 [details]
New amsn-svn ebuild updated

Better ebuild uses the real Make install from the amsn package using a fakeroot yo skip sandbox warning.
Comment 6 Víctor Enríquez 2006-06-27 09:05:11 UTC
The -r4 is compatible with the 0,97b version, the ebuild is using a fakeroot to skip the sandbox warning and to do a more clean ebuild (no more rm -rf of some dirs), it installs amsn in the WORKDIR with amsn's make install and then we copy all the content, make syms and do and entry in the menu. 
This can be used to clean de actual amsn-095-r2 ebuild.
Comment 7 Víctor Enríquez 2006-06-27 10:42:59 UTC
Created attachment 90291 [details]
amsn-svn-9999-r4.ebuild

Remove nosandbox from strict
Comment 8 Víctor Enríquez 2006-06-29 12:42:01 UTC
Created attachment 90459 [details]
amsn-svn-9999-r5.ebuild

Ebuild updated with latest changes from bug 81893.
Comment 9 Víctor Enríquez 2006-11-17 07:53:34 UTC
Created attachment 102207 [details]
amsn-svn-9999-r6.ebuild

amsn-svn-9999-r6: Minor changes (Added myconf var). Now it depends on dev-tcltk/snack for voice messages support.
Comment 10 Olivier Crete (RETIRED) gentoo-dev 2006-11-25 14:27:53 UTC
Version 0.96 has been released, so I guess this isn't needed anymore
Comment 11 Víctor Enríquez 2006-11-26 05:08:58 UTC
This ebuild is for installing 0.97b version, wich has voice messages support trough snack, but is a development version so i suppose you must leave it as resolved wontfix.