Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147599 - new package: dev-lang/scala-2.4.0 (to replace dev-java/scala-bin) - keyword request
Summary: new package: dev-lang/scala-2.4.0 (to replace dev-java/scala-bin) - keyword r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Java team
URL: http://scala.epfl.ch/downloads/svn.html
Whiteboard:
Keywords: EBUILD
: 98103 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-14 11:46 UTC by Michel Ganguin
Modified: 2007-07-04 02:34 UTC (History)
4 users (show)

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


Attachments
scala-2.1.8.ebuild (scala-2.1.8.ebuild,1.44 KB, text/plain)
2006-09-14 11:49 UTC, Michel Ganguin
Details
scala-2.1.8.ebuild (scala-2.1.8.ebuild,1.86 KB, text/plain)
2006-09-15 05:34 UTC, Michel Ganguin
Details
scala-nodoc.patch: disable scaladoc generation (scala-nodoc.patch,1.34 KB, patch)
2006-09-15 05:35 UTC, Michel Ganguin
Details | Diff
revised ebuild for scala-2.3.0 (scala-2.3.0.ebuild,1.91 KB, text/plain)
2006-11-29 15:24 UTC, Michel Ganguin
Details
revised ebuild for scala 2.4.0 (scala-2.4.0.ebuild,1.86 KB, text/plain)
2007-03-31 21:07 UTC, John Reed Riley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Ganguin 2006-09-14 11:46:39 UTC
new ebuild for scala (! not scala-bin)
Comment 1 Michel Ganguin 2006-09-14 11:49:47 UTC
Created attachment 96991 [details]
scala-2.1.8.ebuild

I've put RESTRICT="fetch" to rename the source tarball. I don't know if it is possible to do that otherwise.
Comment 2 Aggelos Orfanakos (RETIRED) gentoo-dev 2006-09-14 12:56:11 UTC
Hello.
If I am not mistaken on what you are trying to do, you can do something like this:

inherit versionator
MY_P="R_$(replace_all_version_separators '-')"
SRC_URI="http://scalasvn.epfl.ch/cgi-bin/viewvc.cgi/scala/tags/${MY_P}.tar.gz"

... instead of RESTRICT="fetch", renaming the package and manually fetching it (which sounds like a bad idea). For more information, I encourage you to take a look at the Gentoo devmanual [1] if you haven't already.

Kind regards,
Aggelos
Comment 3 Aggelos Orfanakos (RETIRED) gentoo-dev 2006-09-14 12:57:40 UTC
Forgot to mention the URI.

[1] http://devmanual.gentoo.org/ebuild-writing/index.html
Comment 4 Michel Ganguin 2006-09-14 16:14:12 UTC
--MY_P="R_$(replace_all_version_$_separators '-')"

I've done this with FILE="R_${PV//./_}". I didn't know versionator eclass.

But I want to rename the file R_2_1_8.tar.gz because i think that isn't a good name. Scala sources are only available by svn and this tarball is autogenerated by viewvc (R_2_1_8 as the directory). I think that program name should figure in tarball, otherwise it can bring to name conflict.

If you want I modify the ebuild to use subversion eclass, but I've found nicer to use the tarball.

--Forgot to mention the URI

Do you mean in pkg_nofetch()?
I "autofetch" the file in it. The message isn't clear. I meant:
"The file is now fetched. rerun emerge to build"

or did you mean the incorrect SRC_URI? (only the filename is incorrect)

Thanks, greetings
Michel
Comment 5 Michel Ganguin 2006-09-14 16:14:26 UTC
--MY_P="R_$(replace_all_version_$_separators '-')"

I've done this with FILE="R_${PV//./_}". I didn't know versionator eclass.

But I want to rename the file R_2_1_8.tar.gz because i think that isn't a good name. Scala sources are only available by svn and this tarball is autogenerated by viewvc (R_2_1_8 as the directory). I think that program name should figure in tarball, otherwise it can bring to name conflict.

If you want I modify the ebuild to use subversion eclass, but I've found nicer to use the tarball.

--Forgot to mention the URI

Do you mean in pkg_nofetch()?
I "autofetch" the file in it. The message isn't clear. I meant:
"The file is now fetched. rerun emerge to build"

or did you mean the incorrect SRC_URI? (only the filename is incorrect)

Thanks, greetings
Michel
Comment 6 Michel Ganguin 2006-09-14 16:16:05 UTC
sorry for twice post! my network/internet issue!
Comment 7 Aggelos Orfanakos (RETIRED) gentoo-dev 2006-09-14 16:35:00 UTC
With "Forgot to mention the URI.", I meant that I forgot to provide the link to the Gentoo devmanual I wrote about in my initial comment.

Since your ebuild downloads a tarball that is automatically generated, it is still considered to be a "live" ebuild AFAIK; thus I see no reason why you can't use the SVN eclass to make your life easier. Note, however, that such live ebuilds are generally discouraged. It would be better if you made an ebuild that downloaded and compiled a static tarball of a predefined version (if there is one).

As for renaming the tarball, I still see no reason to do it (even if you think it's ugly ;-)). If I were you, I would keep its name as-is; this would be much more consistent and wouldn't introduce unexpected behavior.

Again, I encourage you to take a look at the Gentoo devmanual (http://devmanual.gentoo.org/). It's pretty well-written and informative, and I guess it will answer many of your questions.

Regards,
Aggelos
Comment 8 Michel Ganguin 2006-09-15 05:34:17 UTC
Created attachment 97043 [details]
scala-2.1.8.ebuild

new ebuild. fetch restriction removed.
source doc and examples flag added.
Comment 9 Michel Ganguin 2006-09-15 05:35:20 UTC
Created attachment 97044 [details, diff]
scala-nodoc.patch: disable scaladoc generation
Comment 10 Michel Ganguin 2006-11-29 15:24:39 UTC
Created attachment 103031 [details]
revised ebuild for scala-2.3.0

- new scala version
- removed scala-nodoc.patch
- detect if it is a minor or a patch scala distribution to adjust ant target
Comment 11 John Reed Riley 2007-03-31 21:07:52 UTC
Created attachment 115092 [details]
revised ebuild for scala 2.4.0

This is just an updated version of the 2.3.0 patch, to cope with some directory name changes.  There's plenty of room for improvement in it, but it works.
Comment 12 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-04 10:01:08 UTC
*** Bug 126471 has been marked as a duplicate of this bug. ***
Comment 13 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-04 10:09:46 UTC
Today is your lucky day, for I'm taking care of this!
I will add it, how soon depends on how many times I will have to recompile this monstrosity till it behaves like I want:
BUILD SUCCESSFUL
Total time: 21 minutes 35 seconds
Comment 14 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-04 17:25:59 UTC
In CVS, thanks everyone.

AMD64: please add ~amd64 keyword so we have the same as scala-bin and can remove that after this get stable. Please test with FEATURES=test to see if tests are ok, and USE=doc to see if 512M is enough for this beast to build and generate docs also on amd64... Be patient as both take a LONG time.
Comment 15 Alistair Bush (RETIRED) gentoo-dev 2007-05-06 00:50:19 UTC
Added to ~amd64.

Thank you for everyones work.

Closing.
Comment 16 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-07-04 02:34:44 UTC
*** Bug 98103 has been marked as a duplicate of this bug. ***