Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amsn_dev ebuild?
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
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Thu May 25, 2006 7:43 pm    Post subject: amsn_dev ebuild? Reply with quote

I wanna try out the development version of amsn, so I got the tarball from their webpage, but I don't want to install it without an ebuild. Does anyone know if one exists?
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 340

PostPosted: Thu May 25, 2006 10:02 pm    Post subject: Reply with quote

I can give you a diff of my own ebuild:
Code:
3c3
< # $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.95-r2.ebuild,v 1.1 2006/01/03 02:14:40 tester Exp $
---
> # $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.96_beta.ebuild,v 1.1 2006/01/03 02:14:40 tester Exp $
7c7
< SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
---
> SRC_URI="http://amsn.sourceforge.net/amsn_cvs.tar.gz"
26c26,30
< src_compile() {
---
> src_unpack() {
>   unpack ${A}
>   mv ${WORKDIR}/msn ${WORKDIR}/amsn-0.96_beta
>   cd ${WORKDIR}/amsn-0.96_beta
> }
27a32
> src_compile() {

This is against the amsn-0.95.ebuild. You should now that it is possible that that snapshot could be outdated (from a development point of view ;)) since they now use SVN instead of CVS. Just checkout the SVN version and build your own amsn_cvs.tar.gz and put that in $DISTDIR :)
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Fri May 26, 2006 7:35 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Sun May 28, 2006 6:52 pm    Post subject: Reply with quote

Here is a SVN ebuild, not an amsn_dev ebuild !
Let me explain it a bit more :
As amsn 0.96 will soon be released (but don't ask me when :wink: ), and because some devs want to do deep changes in the code, our svn is splitted.
The directory "amsn" (used by that ebuild) has those deep changes so it's not what will be amsn0.96, but is more like an amsn post 0.96.

Here is the ebuild :
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/amsn/trunk/amsn"
ESVN_PROJECT="amsn"
inherit subversion eutils

DESCRIPTION="Alvaro's Messenger client for MSN"
HOMEPAGE="http://amsn.sourceforge.net"

IUSE="debug nolibng gnome kde skins plugins"

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


DEPEND=">=dev-lang/tcl-8.4
   >=dev-lang/tk-8.4
   >=dev-tcltk/tls-1.4.1"

RDEPEND="${DEPEND}"


pkg_setup() {
   eerror "This is a LIVE SVN ebuild."
   eerror "That means there are NO promises it will work."
}

src_compile() {

   use debug   && myconf="$myconf --enable-debug"
   use nolibng   && myconf="$myconf --disable-libng"

   econf ${myconf} || die
   emake || die

}

src_install() {

   dodir /usr/share/amsn_dev/
   cp -a ${S}/* ${D}/usr/share/amsn_dev

   if use gnome
   then
      dodir /usr/share/applications
      cp /usr/share/amsn_cvs/amsn.desktop /usr/share/applications
      einfo "Installing GNOME/KDE Icons in /usr/share/pixmaps"
      dodir /usr/share/pixmaps
      cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/
   fi

   if use kde
   then
      dodir /usr/share/applnk/Internet
      cp /usr/share/amsn_cvs/amsn.desktop /usr/share/applnk/Internet/
      einfo "Installing KDE Icons in default theme"
      dodir /usr/share/pixmaps
      cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/
   fi

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

   cd ${D}/usr/share/amsn_dev
   dodoc TODO README FAQ CREDITS HELP

   if use skins
   then
      einfo "Downloading and installing skins from SVN"
      svn co https://svn.sourceforge.net/svnroot/amsn/trunk/amsn-extras/skins skins
      cp -r skins/* /usr/share/amsn_dev/skins/
   fi

   if use plugins
   then
      einfo "Downloading and installing plugins from SVN"
      svn co https://svn.sourceforge.net/svnroot/amsn/trunk/amsn-extras/plugins plugins
      cp -r plugins/* /usr/share/amsn_dev/plugins/
   fi

}

pkg_postinst() {
   ewarn "You might have to remove ~/.amsn prior to running as user if amsn hangs on start-up."
   ewarn "Remember, this stuff is SVN only code so dont cry when"
   ewarn "I break you :)."
   ewarn "If you want to report bugs, go to our forum at http://amsn.sf.net/forums"
   ewarn "or use our IRC channel at irc.freenode.net #amsn"
   ewarn ""
   ewarn "In order to use this cvs version, run amsn_dev instead of amsn."

}

The USE are debug nolibng gnome kde skins plugins. skins and plugins are here to know if you also want to use skins and plugins from the svn.
kde and gnome are only for kde and gnome menus.
nolibng should never be enabled, except if one developer ask you to (in the amsn forums for example).

If you want to use the amsn_0_96 branch, replace the line
ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/amsn/trunk/amsn"
by
ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/amsn/branches/0_96/amsn"

If it works, or not, please send feedbacks.
(you need subversion to be installed)
_________________
billiob
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 340
Location: France

PostPosted: Sun May 28, 2006 7:36 pm    Post subject: Reply with quote

Thank you for this ebuild! I was looking for this kind of ebuild. ;)

I would like to know why no amsn ebuild depends on tcl/tk-8.5 or newer (CVS ?)? As it's told here, we've to use at least tcl and tk 8.5 to have anti-aliased fonts.
Thank you in advance.
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Sun May 28, 2006 7:50 pm    Post subject: Reply with quote

Because, for the moment, we don't support it.
Then, if you want to use tcl/tk 8.5, there are ebuilds on the forums. (Those ebuilds are not well : replace 8.5a3 by 8.5a4 in those ebuilds; and they are not slotted :( because tcl/tk 8.5 is still unstable)
But if you have bugs, the tcl team (and us, if you want AA fonts) will ask you to use the cvs version, so ...
_________________
billiob
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 340
Location: France

PostPosted: Sun May 28, 2006 8:13 pm    Post subject: Reply with quote

Thank you for your reply. :wink:
Back to top
View user's profile Send private message
gim
Guru
Guru


Joined: 29 Apr 2003
Posts: 418
Location: milky-way

PostPosted: Wed Jul 05, 2006 10:23 pm    Post subject: Reply with quote

Like most svn ebuilds, I would add a
Code:
PROVIDE="net-im/amsn"
line to it.
Yet, i dunno if some package already depends on amsn… but it can't be bad.
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Wed Jul 05, 2006 11:49 pm    Post subject: Reply with quote

When I try to digest that ebuild from billiob, I get this error:
Code:
ebuild amsn-9999.ebuild digest
: command not foundnet-im/amsn/amsn-9999.ebuild: line 3:

!!! ERROR: net-im/amsn-9999 failed.
Call stack:
  ebuild.sh, line 1447:   Called source '/usr/local/portage/net-im/amsn/amsn-9999.ebuild'
' amsn-9999.ebuild, line 6:   Called inherit 'subversion' 'eutils
  ebuild.sh, line 1182:   Called die

.eclass could not be found by inherit()
!!! If you need support, post the topmost build error, and the call stack if relevant.


aux_get(): (0) Error in net-im/amsn-9999 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)


How can I fix this?
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Thu Jul 06, 2006 3:56 pm    Post subject: Reply with quote

emerge subversion should fix that.
_________________
billiob
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Thu Jul 06, 2006 6:10 pm    Post subject: Reply with quote

billiob wrote:
emerge subversion should fix that.

No luck. I actually already had subversion, but reemerged it just in case.
Still the same error.
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Thu Jul 06, 2006 7:08 pm    Post subject: Reply with quote

Okay I got it working. I think it was a copy problem because I deleted the ebuild file and created and pasted the source again and it worked. But amsn_dev kept crashing, so I emerged the 0.95 version again :P
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Thu Jul 06, 2006 7:11 pm    Post subject: Reply with quote

try updating portage.
"equery belongs /usr/portage/eclass/subversion.eclass" returns me no package :?
_________________
billiob
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Thu Jul 06, 2006 7:14 pm    Post subject: Reply with quote

Do you know why it is crashing ?
_________________
billiob
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Thu Jul 06, 2006 8:10 pm    Post subject: Reply with quote

billiob wrote:
Do you know why it is crashing ?

Nope. It just froze twice. I couldn't close it, it didn't show up in ps -A but the window was still active. Maybe it was the Music Plugin.
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Thu Jul 06, 2006 8:17 pm    Post subject: Reply with quote

Can i ask you try using amsn without the music plugin ? What is your music player ?
_________________
billiob
Back to top
View user's profile Send private message
Hwoarang
Developer
Developer


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Thu May 08, 2008 3:01 pm    Post subject: Reply with quote

Does anybody have a recent ebuild for the current development stage of amsn? :roll:
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Thu May 08, 2008 3:05 pm    Post subject: Reply with quote

Try those ones : http://billiob.free.fr/amsn/amsn-overlay.tar.bz2
_________________
billiob
Back to top
View user's profile Send private message
Hwoarang
Developer
Developer


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Thu May 08, 2008 3:12 pm    Post subject: Reply with quote

Thank you :)


:edit:

Oh my... It has a banch of hard masked dependencies :D :twisted:
Back to top
View user's profile Send private message
rada
Apprentice
Apprentice


Joined: 21 Oct 2005
Posts: 202
Location: Ottawa, Canada

PostPosted: Wed Aug 06, 2008 5:16 pm    Post subject: Reply with quote

Updated ebuilds. Separated amsn and amsn-extras (plugins, skins) into 2 ebuilds.

Edit: add xft to your USE flags if you want anti-aliasing.

net-im/amsn/amsn-9999.ebuild
Code:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

ESVN_REPO_URI="https://amsn.svn.sourceforge.net/svnroot/amsn/trunk/amsn"
ESVN_PROJECT="amsn"
inherit subversion eutils

DESCRIPTION="Alvaro's Messenger client for MSN"
HOMEPAGE="http://amsn.sourceforge.net"

IUSE="debug +nolibng static gnome kde skins plugins xft"

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


DEPEND=">=dev-lang/tcl-8.4
   >=dev-lang/tk-8.4
   >=dev-tcltk/tls-1.4.1
   xft? (
      >=dev-lang/tcl-8.5
      >=dev-lang/tk-8.5 )
   skins? ( =net-im/amsn-extras-9999 )
   plugins? ( =net-im/amsn-extras-9999 )"

RDEPEND="${DEPEND}"


pkg_setup() {
   eerror "This is a LIVE SVN ebuild."
   eerror "That means there are NO promises it will work."
}

src_compile() {
   econf \
      $(use_enable debug) \
      $(use_enable nolibng) \
      $(use_enable static) \
      $(use_enable xft) \
   || die "configure failed"

   emake || die

}

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


   if use gnome
   then
      dodir /usr/share/applications
      cp /usr/share/amsn_cvs/amsn.desktop /usr/share/applications
      einfo "Installing GNOME/KDE Icons in /usr/share/pixmaps"
      dodir /usr/share/pixmaps
      cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/
   fi
   
   if use kde
   then
      dodir /usr/share/applnk/Internet
      cp /usr/share/amsn_cvs/amsn.desktop /usr/share/applnk/Internet/
      einfo "Installing KDE Icons in default theme"
      dodir /usr/share/pixmaps
      cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/
   fi
}

pkg_postinst() {
   ewarn "You might have to remove ~/.amsn prior to running as user if amsn hangs on start-up."
   ewarn "Remember, this stuff is SVN only code so dont cry when"
   ewarn "I break you :)."
   ewarn "If you want to report bugs, go to our forum at http://amsn.sf.net/forums"
   ewarn "or use our IRC channel at irc.freenode.net #amsn"
   ewarn ""
}


net-im/amsn-extras/amsn-extras-9999.ebuild
Code:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

ESVN_REPO_URI="https://amsn.svn.sourceforge.net/svnroot/amsn/trunk/amsn-extras"
ESVN_PROJECT="amsn"
inherit subversion eutils

DESCRIPTION="Alvaro's Messenger client for MSN"
HOMEPAGE="http://amsn.sourceforge.net"

IUSE="skins plugins"

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

RDEPEND=">=net-im/amsn-0.97"


pkg_setup() {
   eerror "This is a LIVE SVN ebuild."
   eerror "That means there are NO promises it will work."
}


src_install() {
   if use skins
   then
      einfo "Installing skins"
      dodir /usr/share/amsn/skins
      cp -r ${S}/skins/* ${D}/usr/share/amsn/skins/
   fi

   if use plugins
   then
      einfo "Installing plugins"
      dodir /usr/share/amsn/plugins
      cp -r ${S}/plugins/* ${D}/usr/share/amsn/plugins/
   fi   
}

pkg_postinst() {
   ewarn "You might have to remove ~/.amsn prior to running as user if amsn hangs on start-up."
   ewarn "Remember, this stuff is SVN only code so dont cry when"
   ewarn "I break you :)."
   ewarn "If you want to report bugs, go to our forum at http://amsn.sf.net/forums"
   ewarn "or use our IRC channel at irc.freenode.net #amsn"
   ewarn ""
}


Last edited by rada on Fri Aug 08, 2008 4:32 pm; edited 2 times in total
Back to top
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 405

PostPosted: Fri Aug 08, 2008 10:34 am    Post subject: Reply with quote

Thanks!
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