Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Emerillon 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
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Thu Aug 25, 2011 2:09 am    Post subject: [Solved] Emerillon ebuild Reply with quote

I was curious if anyone had successfully created an Emerillon ebuild, and if so, could they post it here. I see that there's one in suka's overlay, but when I copied the appropriate ebuilds, (ethos, librest and emerillon), to my local overlay, and tried to emerge emerillon, there was a failure to emerge librest-0.6.0, due to the fact that the distribution tarball, (rest-0.6.0.tar.gz), isn't anywhere to be found. Apparently moblin.org redirects to meego.com now, and while I could find the git page for the librest project, I couldn't find an appropriate tarball anywhere that would work with suka's overlay's librest ebuild.

Thanks..


Last edited by jasn on Tue Oct 04, 2011 2:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Thu Aug 25, 2011 4:41 am    Post subject: Reply with quote

Try http://meego.gitorious.org/meego-middleware/librest/trees/librest-0.6
and "Download librest-0.6 as tar.gz". You also have to modify the ebuild or extract and re-package the source.
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Thu Aug 25, 2011 4:08 pm    Post subject: Reply with quote

Thanks sebaro,

That fixed downloading the correct tarball, but being a novice when it comes to ebuilds, it's not surprising that I got stuck a little bit farther along. So here's the modified librest-0.7.3.ebuild I'm using for emerging librest;
Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit gnome2

DESCRIPTION="Library to access RESTful web-services"
HOMEPAGE="http://meego.gitorious.org/meego-middleware/librest"
SRC_URI="http://meego.gitorious.org/meego-middleware/librest/archive-tarball/librest-0.7.3.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome"

RDEPEND=">=dev-libs/glib-2.18.0
   >=net-libs/libsoup-2.4
   gnome? ( >=net-libs/libsoup-gnome-2.25.1 )
   >=dev-libs/libxml2-2"

DEPEND="${RDEPEND}
   sys-devel/gettext
   >=dev-util/pkgconfig-0.9"

DOCS="AUTHORS NEWS README"

S="${WORKDIR}/meego-middleware-librest"

pkg_setup() {
   G2CONF="${G2CONF}
      $(use_with gnome)"
}

and the emerge fails at the outset with;
Code:
 * Package:    dev-libs/librest-0.7.3
 * Repository: This-is-the-local-portage-overlay
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking librest-0.7.3.tar.gz to /tmp/portage/dev-libs/librest-0.7.3/work
>>> Source unpacked in /tmp/portage/dev-libs/librest-0.7.3/work
>>> Preparing source in /tmp/portage/dev-libs/librest-0.7.3/work/meego-middleware-librest ...
 * Fixing OMF Makefiles ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/dev-libs/librest-0.7.3/work/meego-middleware-librest ...
 * ERROR: dev-libs/librest-0.7.3 failed (configure phase):
 *   no configure script found

There is a;
Code:
/tmp/portage/dev-libs/librest-0.7.3/work/meego-middleware-librest/configure.ac

but I'm not sure if this is the configure script that the emerge process needs. If anyone has some advice on how to fix this, please feel free to comment.

Thanks..
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Fri Aug 26, 2011 5:02 am    Post subject: Reply with quote

Inherit "autotools" too and add at the end of ebuild:
Code:
src_prepare() {
        elibtoolize
        eautoconf
}
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Fri Aug 26, 2011 4:14 pm    Post subject: Reply with quote

Thanks again sebaro.

With your help I was able to hack an ebuild that would successfully emerge librest 0.6.1. My only problem is that I had to manually download the tarball, and move it to my distfiles directory. The web interface for the gitorious repository left me baffled. So my librest ebuild will not successfully download the librest tarball, even with the SRC_URI that I specified below, and I'm not sure why. Also, whenever I tried to emerge any versions of librest 0.6.2 or greater, I kept getting the following error when compiling rest-extras, that I wasn't able to solve.
Code:
Making all in rest-extras
make[2]: Entering directory `/root/temp/librest/meego-middleware-librest/rest-extras'
  CC     librest_extras_0.6_la-flickr-proxy.lo
  CC     librest_extras_0.6_la-flickr-proxy-call.lo
  CC     librest_extras_0.6_la-facebook-proxy.lo
  CC     librest_extras_0.6_la-facebook-proxy-call.lo
  CCLD   librest-extras-0.6.la
  GEN    RestExtras-0.6.gir
In file included from <stdin>:9:
/root/temp/librest/meego-middleware-librest/rest-extras/facebook-proxy-private.h:25:1: warning: "PROXY_GET_PRIVATE" redefined
In file included from <stdin>:8:
/root/temp/librest/meego-middleware-librest/rest-extras/flickr-proxy-private.h:25:1: warning: this is the location of the previous definition
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -c -o /root/temp/librest/meego-middleware-librest/rest-extras/tmp-introspect13jgoJ/RestExtras-0.6.o /root/temp/librest/meego-middleware-librest/rest-extras/tmp-introspect13jgoJ/RestExtras-0.6.c
g-ir-scanner: link: ../libtool --mode=link --tag=CC --silent gcc -o /root/temp/librest/meego-middleware-librest/rest-extras/tmp-introspect13jgoJ/RestExtras-0.6 -export-dynamic -L. librest-extras-0.6.la -pthread -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 /root/temp/librest/meego-middleware-librest/rest-extras/tmp-introspect13jgoJ/RestExtras-0.6.o
Namespace is empty; likely causes are:
* Not including .h files to be scanned
* Broken --identifier-prefix

Anyway after emerging librest-0.6.1, as well as ethos, and all of the other required packages, I tried to emerge emerillon. The configure script depended on older versions of champlain-0.6.0, champlain-gtk-0.6.0, and the vala compiler, and after I changed those values, I was able to manually configure the source. However, the compilation failed and I think at this point, this will take a more experienced dev to sort out. If anyone has working ebuilds for emerillon, please feel free to post and/or post links. In case anyone is curious here are the three ebuilds for librest, ethos, and emerillon, that I was using;

librest-0.6.1.ebuild
Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools gnome2

DESCRIPTION="Library to access RESTful web-services"
HOMEPAGE="http://meego.gitorious.org/meego-middleware/librest"
SRC_URI="http://meego.gitorious.org/meego-middleware/librest/archive-tarball/librest-0.6.1.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome"

RDEPEND=">=dev-libs/glib-2.18.0
   >=net-libs/libsoup-2.4
   gnome? ( >=net-libs/libsoup-gnome-2.25.1 )
   >=dev-libs/libxml2-2"

DEPEND="${RDEPEND}
   sys-devel/gettext
   >=dev-util/pkgconfig-0.9
   dev-util/gtk-doc"

DOCS="AUTHORS NEWS README"

S="${WORKDIR}/meego-middleware-librest"

pkg_setup() {
   G2CONF="${G2CONF}
      $(use_with gnome)"
}

src_prepare() {
   ./autogen.sh --prefix=/usr || die "autogen.sh failed"
        elibtoolize
        eautoconf
}

ethos-0.2.2.ebuild
Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools gnome2

DESCRIPTION="Generic Plugin Engine for GLib"
HOMEPAGE="http://git.dronelabs.com/ethos/"
SRC_URI="http://ftp.dronelabs.com/sources/ethos/0.2/ethos-0.2.2.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="introspection javascript python"

RDEPEND=">=dev-libs/glib-2.16.0
   >=x11-libs/gtk+-2.10.0
   introspection? ( >=dev-libs/gobject-introspection-0.6.3 )
   javascript? ( >=dev-libs/gjs-0.2 )
   python? ( >=dev-python/pygobject-2.15.3
      >=dev-python/pygtk-2.12 )"
DEPEND="${RDEPEND}
   sys-devel/gettext
   >=dev-util/pkgconfig-0.9"

DOCS="AUTHORS NEWS README TODO"

pkg_setup() {
   G2CONF="${G2CONF}
      --disable-vala
      $(use_enable python)
      $(use_enable javascript js)
      $(use_enable introspection)"
}

src_prepare() {
        elibtoolize
        eautoconf
}

emerillon-01.2.ebuild
Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit gnome2 eutils autotools

DESCRIPTION="GNOME-based Map viewer, using Open Street Maps"
HOMEPAGE="http://projects.gnome.org/emerillon/"

LICENSE="LGPL-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=dev-libs/glib-2.12.0
   >=x11-libs/gtk+-2.12.0
   >=gnome-base/gconf-2.5.90
   >=media-libs/libchamplain-0.4
   >=app-misc/geoclue-0.11.1
   >=dev-libs/ethos-0.2
   >=dev-libs/librest-0.6"
DEPEND="${RDEPEND}
   sys-devel/gettext
   >=dev-util/pkgconfig-0.9"

DOCS="AUTHORS NEWS README"

src_prepare() {
        elibtoolize
        eautoconf
}

Thanks again..
Back to top
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Sat Aug 27, 2011 7:05 am    Post subject: Reply with quote

Hi there,

Sound like great app. I started investigating and first thing I noticed is that net-libs/rest-0.7.10 is in portage...

http://git.gnome.org/browse/librest/
http://www.ohloh.net/p/librest

seems like same library You are after just in much more recent version
_________________
Sky is not the limit...
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Sat Aug 27, 2011 7:59 am    Post subject: Reply with quote

You can't use SRC_URI with git.

Did you try both versions of emerillon 0.1.1 and 0.1.2 from here: http://projects.gnome.org/emerillon/download.html ?
0.1.2 requires champlain 0.6.

You can also try to make an live emerillon ebuild and use
EGIT_REPO_URI="git://git.gnome.org/${PN}" instead of SRC_URI,
maybe it builds with newer versions of rest, champlain etc.
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Sat Aug 27, 2011 1:23 pm    Post subject: Reply with quote

ryszardzonk wrote:
I started investigating and first thing I noticed is that net-libs/rest-0.7.10 is in portage...

Thanks ryszardzonk.

You're right. net-libs/rest-0.7.1 is already in portage and it's probably much easier to edit the dependencies in the emerillon ebuild to depend on net-libs/rest, then to use the manual librest ebuild above. Anyway when I tried this I was able to build librest 0.6.1. The final fail I was getting was in trying to build emerillon 0.1.2.
sebaro wrote:
You can't use SRC_URI with git.

Did you try both versions of emerillon 0.1.1 and 0.1.2 from here: http://projects.gnome.org/emerillon/download.html ?
0.1.2 requires champlain 0.6.

You can also try to make an live emerillon ebuild and use
EGIT_REPO_URI="git://git.gnome.org/${PN}" instead of SRC_URI,
maybe it builds with newer versions of rest, champlain etc.

Thanks sebaro. I wasn't using git for any of these ebuilds. Also I only tried to emerge emerillon 0.1.2, and I didn't manually download the tarball from the project page, as the ebuild was able to download the tarball normally. When trying to emerge emerillon failed for me, I also noticed in the configure.ac file for emerillon-0.1.2, that it required champlain-0.6, (and champlain-gtk-0.6 as well). I was able to edit the configure script to accept 0.10, but the compile failed later anyway, at a point that I think was unrelated. I could have downgraded my champlain libs and tried again, but to be honest, I had kind of hit my limit by then. Finally I could try and make live git ebuilds for all three, but I'll just wait until others have a chance to look into this.

Thanks for all the help..
Back to top
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Sat Aug 27, 2011 10:31 pm    Post subject: Reply with quote

jasn wrote:
Finally I could try and make live git ebuilds for all three, but I'll just wait until others have a chance to look into this.


personaly I believe it is not a good idea to have live ebuilds for libraries as after a period of time one tends to forget to update them not to mention that it may break things for other packages as there is high probability that changes introduced in library repositories didn't make it into the packages yet. As for apps this is whole different story. I personaly use about 10 live ebuilds and I consider it best way to go if You specially if You want to help out with translations, bug reports etc.

ethos-0.2.2.ebuild
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit autotools gnome2 python

DESCRIPTION="Generic Plugin Engine for GLib"
HOMEPAGE="http://git.dronelabs.com/ethos/"
SRC_URI="http://ftp.dronelabs.com/sources/ethos/0.2/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc introspection javascript python vala"

RDEPEND=">=dev-libs/glib-2.16.0
        >=x11-libs/gtk+-2.10.0
        introspection? ( >=dev-libs/gobject-introspection-0.6.3 )
        python? ( >=dev-python/pygobject-2.15.3
        >=dev-python/pygtk-2.12 )
        javascript? ( >=dev-libs/gjs-0.2 )
        vala? ( dev-lang/vala:0 )"

DEPEND="${RDEPEND}
        dev-perl/XML-Parser
        doc? ( dev-util/gtk-doc )"


DOCS="AUTHORS NEWS README TODO"

pkg_setup() {
        G2CONF="${G2CONF}
                $(use_enable debug)
                $(use_enable doc gtk-doc)
                $(use_enable python)
                $(use_enable introspection)"

        python_set_active_version 2
        python_pkg_setup
}
# not present in the configure script...
#               $(use_enable javascript js)
#               $(use_enable vala)"

src_prepare() {
        elibtoolize
        eautoconf
}


vala binding is quite acient and just like javasript may not be disabled trough configure script meaning that when it is found in the system it will always get build.
I didn't test javascript as it depends on the gcj which will not install at the same time the spidermonkey is installed which I do not know how to get around

Code:
Calculating dependencies... done!
[ebuild  N     ] dev-libs/gjs-0.7.14  USE="-examples -test" 504 kB [0]
[uninstall     ] dev-lang/spidermonkey-1.8.2.15  USE="threadsafe"  [0]
[blocks b      ] dev-lang/spidermonkey ("dev-lang/spidermonkey" is blocking dev-libs/gjs-0.7.14)
[ebuild   R    ] dev-libs/ethos-0.2.2  USE="introspection javascript* python vala -debug -doc" 0 kB [1]


emerillon I didnt test yet at all but ebuild should look something like this to start with

emerillon-9999.ebuild
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

EGIT_REPO_URI="git://git.gnome.org/${PN}"

inherit autotools eutils git gnome2

DESCRIPTION="GNOME-based Map viewer, using Open Street Maps"
HOMEPAGE="http://projects.gnome.org/emerillon/"
SRC_URI=""

LICENSE="LGPL-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc introspection vala"

RDEPEND=">=dev-libs/glib-2.25.10
        >=x11-libs/gtk+-2.20
        >=gnome-base/gconf-2.31.1
        >=media-libs/libchamplain-0.7.1
        >=app-misc/geoclue-0.11.1
        >=dev-libs/ethos-0.2
        >=net-libs/rest-0.6
        introspection? ( dev-libs/gobject-introspection )
        vala? ( dev-lang/vala:0 )"
DEPEND="${RDEPEND}
        doc? ( dev-util/gtk-doc )"

DOCS="AUTHORS NEWS README"

src_prepare() {
        elibtoolize
        eautoconf
}
pkg_setup() {
        G2CONF="${G2CONF}
                $(use_enable introspection)
                $(use_enable doc gtk-doc)
                $(use_enable vala)"
}

_________________
Sky is not the limit...
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Tue Oct 04, 2011 3:11 pm    Post subject: Reply with quote

With contributions from ryszardzonk in this thread, and with Emerillon updated to 0.1.90, (which removed the dependency on the ethos lib), I've added a SRC_URI, and edited the dependencies in ryszardzonk's previous emerillon ebuild, and come up with the following ebuild, which compiled and installed on my system.

emerillon -0.1.90.ebuild
Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit autotools eutils gnome2

DESCRIPTION="GNOME-based Map viewer, using Open Street Maps"
HOMEPAGE="http://projects.gnome.org/emerillon/"
SRC_URI="http://download.gnome.org/sources/emerillon/0.1/${P}.tar.xz"

LICENSE="LGPL-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc introspection vala"

RDEPEND=">=dev-libs/glib-2.25.10
        >=gnome-base/gconf-2.31.1
        >=x11-libs/gtk+-3.0.12
        >=media-libs/libchamplain-0.11
        >=net-libs/rest-0.7
        >=media-libs/clutter-1.0
        app-misc/geoclue
        dev-libs/libpeas
        introspection? ( dev-libs/gobject-introspection )
        vala? ( dev-lang/vala:0 )"
DEPEND="${RDEPEND}
        doc? ( dev-util/gtk-doc )"

DOCS="AUTHORS NEWS README"

pkg_setup() {
        G2CONF="${G2CONF}
                $(use_enable introspection)
                $(use_enable doc gtk-doc)
                $(use_enable vala)"
}

src_prepare() {
        elibtoolize
        eautoconf
}

I haven't tested this updated live ebuild, but I would assume it should also work;

emerillon-9999.ebuild
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

EGIT_REPO_URI="git://git.gnome.org/${PN}"

inherit autotools eutils git gnome2

DESCRIPTION="GNOME-based Map viewer, using Open Street Maps"
HOMEPAGE="http://projects.gnome.org/emerillon/"
SRC_URI=""

LICENSE="LGPL-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc introspection vala"

RDEPEND=">=dev-libs/glib-2.25.10
        >=gnome-base/gconf-2.31.1
        >=x11-libs/gtk+-3.0.12
        >=media-libs/libchamplain-0.11
        >=net-libs/rest-0.7
        >=media-libs/clutter-1.0
        app-misc/geoclue
        dev-libs/libpeas
        introspection? ( dev-libs/gobject-introspection )
        vala? ( dev-lang/vala:0 )"
DEPEND="${RDEPEND}
        doc? ( dev-util/gtk-doc )"

DOCS="AUTHORS NEWS README"

pkg_setup() {
        G2CONF="${G2CONF}
                $(use_enable introspection)
                $(use_enable doc gtk-doc)
                $(use_enable vala)"
}

src_prepare() {
        elibtoolize
        eautoconf
}

I don't know if it makes a difference, but I'm running a Gnome 3 environment using the gnome overlay so my installed dependencies are at;

From the portage tree
Code:
net-libs/rest-0.7.10

From the gnome overlay (master branch)
Code:
x11-libs/gtk+-3.2.0
app-misc/geoclue-0.12.0_p20110307
media-libs/clutter-1.8.0
dev-libs/libpeas-1.2.0
media-libs/libchamplain-0.12.0

Thanks again..
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