Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141462 - new ebuild: xoscope-1.12
Summary: new ebuild: xoscope-1.12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL: http://xoscope.sourceforge.net
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-07-22 21:08 UTC by Triffid Hunter
Modified: 2012-04-13 00:14 UTC (History)
5 users (show)

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


Attachments
ebuild (xoscope-1.12.ebuild,607 bytes, text/plain)
2006-07-22 21:09 UTC, Triffid Hunter
Details
Improved ebuild (xoscope-1.12.ebuild,819 bytes, text/plain)
2007-12-11 18:44 UTC, Peter Fox
Details
improved ebuild with patch for 64bit (xoscope-1.12.ebuild,913 bytes, text/plain)
2008-11-07 18:22 UTC, Carl Michal
Details
patch for 64 bit compilation (01-xoscope_pointer_fix.patch,34.03 KB, text/plain)
2008-11-07 18:22 UTC, Carl Michal
Details
xoscope-1.12.ebuild (xoscope-1.12.ebuild,846 bytes, text/plain)
2008-11-07 20:48 UTC, Christian Ruppert (idl0r)
Details
Version 2.0 (Requires GTK 2) (xoscope-2.0.ebuild,764 bytes, text/plain)
2010-03-29 18:27 UTC, Leif James Burrow
Details
remove asm/page.h (01-comedi.patch,1.06 KB, patch)
2011-06-21 08:29 UTC, rainbow
Details | Diff
02-deprecated_GTK.patch (02-deprecated_GTK.patch,1.78 KB, patch)
2011-06-21 08:30 UTC, rainbow
Details | Diff
xoscope-2.0.ebuild (xoscope-2.0.ebuild,924 bytes, text/plain)
2011-06-21 08:32 UTC, rainbow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Triffid Hunter 2006-07-22 21:08:06 UTC
thought someone might find it useful
Comment 1 Triffid Hunter 2006-07-22 21:09:03 UTC
Created attachment 92530 [details]
ebuild
Comment 2 hiyuh 2006-07-27 10:49:45 UTC
Well, please file all ebuilds as text/plain, no application/octet-stream...
That might make someone bit of annoying. ;)
Comment 3 Peter Fox 2007-12-11 18:44:13 UTC
Created attachment 138271 [details]
Improved ebuild

The earlier ebuild didn't work for me: virtual/x11 no longer exists.
When I fixed this, the program had no on screen text due to the 8x16 font not being there. Added dependency on font-sony-misc to fix this.
Added instructions to install the documentation and man page.
Comment 4 Carl Michal 2008-11-07 06:28:35 UTC
xoscope-1.12 doesn't compile on 64bit.

There's a patch in here:

https://launchpad.net/ubuntu/gutsy/+source/xoscope/1.12-5
(buried in the .diff) that fixes it.
Comment 5 Carl Michal 2008-11-07 18:22:03 UTC
Created attachment 171020 [details]
improved ebuild with patch for 64bit

here's a modified ebuild that applies the patch for 64bit.
Comment 6 Carl Michal 2008-11-07 18:22:42 UTC
Created attachment 171021 [details]
patch for 64 bit compilation
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2008-11-07 20:48:47 UTC
Created attachment 171035 [details]
xoscope-1.12.ebuild

here is an improved ebuild for xoscope.

small summary:
you _can_ also add libsx to depends but that is optional and requires a new ebuild.

the gtk switch (--without-gtk) does not work for me.
esound/esd is also optional (but has no switch).
i see no reason for the other dependencies.

the sed prevents install from stripping ( http://www.gentoo.org/proj/en/qa/backtraces.xml )

if we have a provided/non-broken configure script we can use econf here.

make -j1 is needed because parallel build does not work.

maybe you/we can change the dodoc stuff depending on useflag (doc)
but i'm not sure if all the doc files are necessary because i've only improved that ebuild.
Comment 8 Thomas Axelsson 2009-04-05 07:53:42 UTC
-gtk does not work for me either. Also ~amd64 is missing in the last ebuild and it needs to depend on gtk+ in slot 1.
Comment 9 Agryppa 2009-08-12 13:33:06 UTC
(In reply to comment #8)
> -gtk does not work for me either. Also ~amd64 is missing in the last ebuild and
> it needs to depend on gtk+ in slot 1.
> 
Hi,
I took the 1.12 version with the patch for 64 bit, renamed it into 2.0 (there already is a new version of xoscope) and tried it. The addition of "~amd64" that I made in the ebuild allowed me to download and manifest the tarball.

Other discoveries:

1. the patch no longer works. It would have to be regenerated somehow.
2. src_install cannot find files: HARDWARE, INTERNALS, *.ps. they dissapeard from the source.
3. the install phase reports bad practices but that's beyond the ebuild stuff.

Xoscope's author declares in README file that there are options that can be chosen at build time. One could utilize this because it is in the spirit of gentoo. 
so how about use flags appear in the ebuild for what is in the README:

* You will need "GTK+" to build the X client (highly recommended).

* OR (outdated) you can use "libsx" to build an X client if you don't
  have GTK+.  Last tried with version 2.03.

* You will need "libvga" from the "svgalib" package to build the
  SVGA console version.  You may already have this in /usr/lib.

* You will need "libvgamisc" from the "g3vga" kit to get text on the
  console version (recommended if you use the console version).  You
  only need to make misc/libvgamisc.a then move it to somewhere like
  /usr/local/lib or /usr/lib.

Thanks for any improvements.

Agryppa
Comment 10 Agryppa 2009-08-13 10:42:50 UTC
(In reply to comment #9)

I have also found out that:
1. "comedilib" support could be made optional via IUSE="comedi". But someone would have to write an ebuild for comedilib first, www.comedi.org.

2. HARDWARE and *.ps files have been moved to hardware directory in the source.
So "dodoc" directive in the ebuild would need to reflect that.

3. The 2.0 version has no support for console oscillator (he support was dropped) and xoscope can only be built and used with gtk+-2.0 and higher. IUSE="gtk esd comedi" would be the three use flags suitable for the ubuild.

Can anyone help?

Agryppa

Comment 11 Leif James Burrow 2010-03-29 18:27:00 UTC
Created attachment 225711 [details]
Version 2.0 (Requires GTK 2)
Comment 12 rainbow 2011-06-21 08:29:23 UTC
Created attachment 277651 [details, diff]
remove asm/page.h
Comment 13 rainbow 2011-06-21 08:30:46 UTC
Created attachment 277653 [details, diff]
02-deprecated_GTK.patch

GTK_WIDGET_STATE is deprecated with new gtk version 2.2
Comment 14 rainbow 2011-06-21 08:32:32 UTC
Created attachment 277655 [details]
xoscope-2.0.ebuild

New ebuild with patches
Comment 15 Leif James Burrow 2012-04-04 15:24:14 UTC
But what is the file 01-comedi.patch?
Comment 16 Michael Weber (RETIRED) gentoo-dev 2012-04-12 23:25:21 UTC
has bundled gtkdatabox-0.6.0 (tree has version 0.9.1.3).
sound card mode depends on /dev/dsp.
Comment 17 Michael Weber (RETIRED) gentoo-dev 2012-04-13 00:14:22 UTC
I've tried to fix the gtkdatabox version problem, please take a look at the shiny new package sci-eletronics/xoscope.

+*xoscope-2.0 (13 Apr 2012)
+
+  13 Apr 2012; Michael Weber <xmw@gentoo.org> +xoscope-2.0.ebuild,
+  +files/xoscope-2.0-comedi_compile.patch,
+  +files/xoscope-2.0-deprecated_GTK.patch,
+  +files/xoscope-2.0-implicit_decls.patch,
+  +files/xoscope-2.0-man_no_-Tutf8.patch,
+  +files/xoscope-2.0-remove_bundled_gtkdatabox.patch, +metadata.xml:
+  Initial import (bug 141462).
+