Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147845 - jscall-sharp-0.0.2_pre20061125 (New ebuild)
Summary: jscall-sharp-0.0.2_pre20061125 (New ebuild)
Status: RESOLVED FIXED
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-09-16 12:50 UTC by Jurek Bartuszek (RETIRED)
Modified: 2006-11-24 18:00 UTC (History)
3 users (show)

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


Attachments
jscall-sharp-9999.ebuild (New package) (jscall-sharp-9999.ebuild,1.03 KB, text/plain)
2006-09-16 12:51 UTC, Jurek Bartuszek (RETIRED)
Details
Patch #1 (firefox-fix-configure.patch,453 bytes, patch)
2006-09-16 12:53 UTC, Jurek Bartuszek (RETIRED)
Details | Diff
Patch #2 (jscall-sharp-9999-remove-gac-fix.diff,543 bytes, patch)
2006-09-16 12:54 UTC, Jurek Bartuszek (RETIRED)
Details | Diff
jscall-sharp-0.2_pre20050925.ebuild (jscall-sharp-0.2_pre20050925.ebuild,856 bytes, text/plain)
2006-09-25 15:20 UTC, Jurek Bartuszek (RETIRED)
Details
jscall-sharp-0.2_pre20050925.tar.bz2 (jscall-sharp-0.2_pre20050925.tar.bz2,18.17 KB, application/octet-stream)
2006-09-25 15:21 UTC, Jurek Bartuszek (RETIRED)
Details
jscall-sharp-gacfix.diff (jscall-sharp-gacfix.diff,688 bytes, patch)
2006-09-25 15:22 UTC, Jurek Bartuszek (RETIRED)
Details | Diff
jscall-sharp-0.0.2_pre20050925.ebuild (jscall-sharp-0.0.2_pre20050925.ebuild,1.12 KB, text/plain)
2006-09-29 02:52 UTC, Jurek Bartuszek (RETIRED)
Details
jscall-sharp-0.0.2_pre20050925.tar.bz2 (jscall-sharp-0.0.2_pre20050925.tar.bz2,18.33 KB, application/octet-stream)
2006-09-29 02:52 UTC, Jurek Bartuszek (RETIRED)
Details
jscall-sharp-gacfix.diff (jscall-sharp-gacfix.diff,692 bytes, patch)
2006-09-29 02:54 UTC, Jurek Bartuszek (RETIRED)
Details | Diff
dev-dotnet/jscall-sharp-0.0.2.ebuild (jscall-sharp-0.0.2.ebuild,876 bytes, text/plain)
2006-11-15 05:08 UTC, MT
Details
geckos_configure_fix.patch (geckos_configure_fix.patch,2.25 KB, patch)
2006-11-15 05:12 UTC, MT
Details | Diff
jscall-sharp-0.0.2.tar.bz2 (jscall-sharp-0.0.2.tar.bz2,12.80 KB, application/octet-stream)
2006-11-15 05:15 UTC, MT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-16 12:50:43 UTC
Last night SchAmane and I have developed an ebuild that builds jscall-sharp from SVN repository. It provides support for either mozilla and mozilla-firefox. jscall-sharp is a JavaScript bridge for gecko-sharp. Due to it's early development stage version number 9999 was chosen.

dev-dotnet/jscall-sharp suggested.
Comment 1 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-16 12:51:59 UTC
Created attachment 97171 [details]
jscall-sharp-9999.ebuild (New package)

The ebuild itself
Comment 2 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-16 12:53:39 UTC
Created attachment 97172 [details, diff]
Patch #1
Comment 3 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-16 12:54:11 UTC
Created attachment 97173 [details, diff]
Patch #2
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2006-09-25 12:11:24 UTC
Have there not been any tarball releases of this library?

If not, it's much prefered to do a SVN snapshot, using the current version number (usually found in the configure.ac file) and something like jscall-sharp-0.2_pre20060925.ebuild to deal with this.

Also, I'd much prefer to actually fix the autotools stuff to make their install work with a GACUTILS_FLAGS variable like upstream gtk-sharp tarball currently uses.The advantage being we can submit such a patch upstream, and down the line not have to worry about it.
Comment 5 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-25 15:20:08 UTC
Created attachment 98072 [details]
jscall-sharp-0.2_pre20050925.ebuild

Updated ebuild. It doesn't use SVN anymore, includes more dependencies and introduces a normalized versioning system (instead of 9999). Forces src/Makefile.am to use the GACUTILS_FLAG instead of installing assemblies into GAC manually in ebuild.
Comment 6 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-25 15:21:22 UTC
Created attachment 98073 [details]
jscall-sharp-0.2_pre20050925.tar.bz2

A tarball with svn snapshot included.
Comment 7 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-25 15:22:38 UTC
Created attachment 98074 [details, diff]
jscall-sharp-gacfix.diff

Replaces previous gac patch (Patch #2)
Comment 8 Peter Johanson (RETIRED) gentoo-dev 2006-09-28 20:20:11 UTC
The uninstall-local target in the one patch seems a little off.. Should be $(GACUTIL) $(GACUTIL_FLAGS) like in the install-local target. Also, it seems that configure.ac from jscall-sharp considers CVS to currently be 0.0.2, not just 0.2. Lastly, it seems the jscall-sharp.pc file is expecting this in @libdir@/jscall-sharp/... Can you confirm the .pc file ends up pointing to the right spot? In particular, this probably means that the gacutil argument should be /package ${PN}, not ${PN}-0.2, so the symlinks in /usr/$(get_libdir)/mono/${PN}/ are in the right spot. Otherwise, this looks much better.
Comment 9 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-29 02:46:07 UTC
(In reply to comment #8)
> The uninstall-local target in the one patch seems a little off.. Should be
> $(GACUTIL) $(GACUTIL_FLAGS) like in the install-local target.
True, I don't know why did that happen ;)

> Also, it seems
> that configure.ac from jscall-sharp considers CVS to currently be 0.0.2, not
> just 0.2.
I simply followed your suggestion regarding the version number. Indeed, this should be 0.0.2.

> Lastly, it seems the jscall-sharp.pc file is expecting this in
> @libdir@/jscall-sharp/... Can you confirm the .pc file ends up pointing to the
> right spot? In particular, this probably means that the gacutil argument
> should be /package ${PN}, not ${PN}-0.2, so the symlinks in
> /usr/$(get_libdir)/mono/${PN}/ are in the right spot. Otherwise, this looks
> much better.

Here's what's being merged:

>>> Merging dev-dotnet/jscall-sharp-0.2_pre20050925 to /
--- /usr/
--- /usr/lib/
>>> /usr/lib/libjscallglue-0.0.2.so
>>> /usr/lib/libjscallglue.so -> libjscallglue-0.0.2.so
>>> /usr/lib/libjscallglue.la
>>> /usr/lib/libjscallglue.a
--- /usr/lib/mono/
--- /usr/lib/mono/gac/
--- /usr/lib/mono/gac/jscall/
--- /usr/lib/mono/gac/jscall/0.0.2.0__db10596f4718e9c9/
>>> /usr/lib/mono/gac/jscall/0.0.2.0__db10596f4718e9c9/jscall.dll
>>> /usr/lib/mono/gac/jscall/0.0.2.0__db10596f4718e9c9/jscall.dll.config
>>> /usr/lib/mono/gac/jscall/0.0.2.0__db10596f4718e9c9/jscall.dll.mdb
--- /usr/lib/mono/jscall-sharp-0.2/
>>> /usr/lib/mono/jscall-sharp-0.2/jscall.dll -> ../gac/jscall/0.0.2.0__db10596f4718e9c9/jscall.dll
--- /usr/lib/jscall-sharp/
>>> /usr/lib/jscall-sharp/jscall.dll.mdb
>>> /usr/lib/jscall-sharp/jscall.dll
>>> /usr/lib/jscall-sharp/JSCall.js
>>> /usr/lib/jscall-sharp/jscall.dll.config
--- /usr/lib/pkgconfig/
>>> /usr/lib/pkgconfig/jscall-sharp.pc
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/jscall-sharp-0.2_pre20050925/
>>> /usr/share/doc/jscall-sharp-0.2_pre20050925/ChangeLog.gz
>>> /usr/share/doc/jscall-sharp-0.2_pre20050925/README.gz
>>> /usr/share/doc/jscall-sharp-0.2_pre20050925/COPYING.gz
>>> /usr/share/doc/jscall-sharp-0.2_pre20050925/AUTHORS.gz

From /usr/lib/pkgconfig/jscall-sharp.pc:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Libraries=${exec_prefix}/lib/jscall-sharp/jscall.dll
Script=${exec_prefix}/lib/jscall-sharp/JSCall.js
MozillaHome=/usr/lib/mozilla-firefox

Name: jscall-sharp
Description: jscall-sharp - Limited JavaScript bridge for Gecko#
Version: 0.0.2
Libs: -r:${exec_prefix}/lib/jscall-sharp/jscall.dll

Hence all .pc entries are valid. The only entries that are being affected by the /package ${PN}-0.2 are:

--- /usr/lib/mono/jscall-sharp-0.2/
>>> /usr/lib/mono/jscall-sharp-0.2/jscall.dll -> ../gac/jscall/0.0.2.0__db10596f4718e9c9/jscall.dll

Also please notice that packages such as gecko-sharp or gtk-sharp take the same approach (with version number) and it seems to be valid.

Give me a minute to post the corrections.
Comment 10 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-29 02:52:20 UTC
Created attachment 98362 [details]
jscall-sharp-0.0.2_pre20050925.ebuild

Ebuild with corrected version number. No internal changes
Comment 11 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-29 02:52:58 UTC
Created attachment 98363 [details]
jscall-sharp-0.0.2_pre20050925.tar.bz2

Tarball with corrected version number.
Comment 12 Jurek Bartuszek (RETIRED) gentoo-dev 2006-09-29 02:54:06 UTC
Created attachment 98364 [details, diff]
jscall-sharp-gacfix.diff

The gacfix patch with Peter's suggestions included.
Comment 13 Jurek Bartuszek (RETIRED) gentoo-dev 2006-10-22 05:12:46 UTC
Fixed in CVS, thanks
Comment 14 MT 2006-11-15 05:08:59 UTC
Created attachment 101974 [details]
dev-dotnet/jscall-sharp-0.0.2.ebuild

accordling to Michael Hutchinson (jscall-sharp developer), jscall-sharp is gone outside the beta testing and he just provide .deb packages for testing purposes before to release the 0.0.2 version as stable.

attached there is a new ebuild that use the last repository version and fix the dependencies to use seamonkey instead of the old (and deprecated) mozilla suite, making jscall-sharp more portage compliant and ready for the new "seamonkey rules".
Comment 15 MT 2006-11-15 05:12:13 UTC
Created attachment 101975 [details, diff]
geckos_configure_fix.patch

patch that fix configure.ac to rely only to seamonkey, firefox and xulrunner, discarding the old mozilla checks and stuff.
Comment 16 MT 2006-11-15 05:15:16 UTC
Created attachment 101978 [details]
jscall-sharp-0.0.2.tar.bz2

tarball containing the latest repository version
Comment 17 Jurek Bartuszek (RETIRED) gentoo-dev 2006-11-15 08:21:50 UTC
Thanks for your input. However, next time file a new bug, please. There is also one thing to be corrected in src_install(): '/package ${PN}-0.2' should be changed to '/package ${PN}-0.0.2'.
Comment 18 Jurek Bartuszek (RETIRED) gentoo-dev 2006-11-24 18:00:37 UTC
Ok, I'm not putting the suggested 0.0.2 version into portage with this version number unless it gets official. However, I've just made a fresh svn snapshot (20061125), used your geckos_configure_fix.patch and committed them to the tree a while ago.