Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 10956

Summary: gmt-3.4.2.ebuild (New Package)
Product: Gentoo Linux Reporter: Castelão <castelao>
Component: Current packagesAssignee: George Shapovalov (RETIRED) <george>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: castelao
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://gmt.soest.hawaii.edu/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Generic Mapping Tool
Some corrections suggested by George
Stable version

Description Castelão 2002-11-19 06:37:27 UTC
Hi,
the Generic Mapping Tool is a powerfull map generator. An interesting tool for
geophysical sciences.

I'm submiting the gmt-3.4.2_beta3.ebuild. Maybe isn't more necessary to use the
variable "INSTALLDIR" nor to include the "40gmt" in the env.d

The official site description:
########
GMT is a free, open source collection of ~60 UNIX tools that allow users to
manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting,
gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS)
illustrations ranging from simple x-y plots through contour maps to artificially
illuminated surfaces and 3-D perspective views in black and white, gray tone,
hachure patterns, and 24-bit color. GMT supports 25 common map projections plus
linear, log, and power scaling, and comes with support data such as coastlines,
rivers, and political boundaries. 
######
Comment 1 Castelão 2002-11-19 06:46:35 UTC
Created attachment 5787 [details]
Generic Mapping Tool

This is the beta 3 release, but maybe it's working fine.
In the future versions we could include more resources of GMT.
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2002-11-28 21:36:57 UTC
Hi Castel
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2002-11-28 21:36:57 UTC
Hi Castelão.

Thank you for your submission!
Unfortunately there are fe problems with the ebuild.

The major one:
I noticed you do some name mangling in order to remove the _beta fron the ${PV}
part and use that for defining the SRC_URI's, meaning that URI's do not contain
full versioning info. This cannot be left in such form, because when final
version is released it is likely to maintain present name and will have a
potentioal for silent breakage.
   There are ways to go about it. On our side we can mirror necessary sources
after renaming them to contain all necessary versioning. However this makes this
ebuild quite laborous to maintain. It is always preferable to try to solve the
problem upstream.
   We can try to persuade package developers to rename sources. Or if this
package is close to final release, we can just wait until non-beta is released
and add it to portage then. Could you please clarify the status of this package:
like when the release is going to happen and how important is to get this ebuild
processed (are there any other packages that might depend on it) and what is the
general naming policy?

Some minor points:
1. it is not necessary to define INSTALLDIR, you can just use /usr instead.
The situation here is that all the packages have to adhere to FHS
sspecifications (Filesystem Hierarchy Standard). According to it all the
packages managed by distribution should go into /usr and /usr/local should be
left at the discretion of the sysadmin (the user). Basically the end user is
supposed to manually install  packages into /usr/local (and this is why --prefix
in pretty much all configure scripts defaults to /usr/local) and we are not
allowed to touch that.
Thus you can safely use /usr without defining the INSTALLDIR. You can also keep
this war defined, though if you chose so please change itsinvokation everywhere
from $INSTALLDIR to ${INSTALLDIR} form for consistency with all other vars.

2. ./configure --prefix=$INSTALLDIR
can be replaced with econf, which will also set ---mandir and --infodir correctly.

3. Please check that there are no trailing spaces/tabs in the ebuild and that
the indentation is done through tabs (I think this is the case, just listing
this here as this is a formatting convention in ebuilds). Good idea is to pass
the ebuild through lintool, which is now a separate package. You can emerge
lintool and then just check the output of "lintool pkgname-PV.ebuild" for the
complaints.

Thanks again for your work!

George
Comment 4 Castelão 2002-12-04 19:31:34 UTC
Created attachment 6208 [details]
Some corrections suggested by George

As suggested by George the GMT is now installed in /usr not more in /usr/local.

Don't use more the variable $INSTALLDIR.
As other applications, the lib, include and share archives are placed in
sub-directories "gmt-${PV}".
lintool warn about "Testing for presence of env vars" that I didn't understand.

As suggested in the GMT compile instructions was included a export of the
variable "NETCDFHOME".
Comment 5 George Shapovalov (RETIRED) gentoo-dev 2003-02-06 23:40:58 UTC
Hi Castel
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2003-02-06 23:40:58 UTC
Hi Castelão.

Ok, this looks good now.
I have checked the ebuild and committed it (keymasked).
Please test.

George
Comment 7 Castelão 2003-02-12 08:54:25 UTC
There is a problem with paths!

The coastline and bathymetry database of GMT could be bigger if the user choose higher resolutions. For that I didn't put this dataset directly in /usr/share, but in /usr/share/gmt-${PV}. For that is necessary to include in /usr/share a file called "coastline.conf" that have the right path to dataset. In this case will be "/usr/share/gmt-3.4.2".

Any suggestion better than only

echo /usr/share/gmt-${PV} > /usr/share/coastline.conf

in ebuild file?
Comment 8 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:20:48 UTC
db fix
Comment 9 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:25:40 UTC
db fix
Comment 10 Castelão 2003-04-15 16:48:55 UTC
Created attachment 10702 [details]
Stable version

Probablly not the best solution but a stable one.
Comment 11 George Shapovalov (RETIRED) gentoo-dev 2003-05-15 16:23:18 UTC
Hi Castel
Comment 12 George Shapovalov (RETIRED) gentoo-dev 2003-05-15 16:23:18 UTC
Hi Castelão.

Thanks for testing, remarks and everything!
Could you please reopen the bug when you add comments that require attention other that "it works"? Otherwise the bug does not show on my radar screen ;). Sometimes bugzilla skips on notification emails (which seems to have happened here), so I really have no way of knowing if the bug has changed unless it reappears in my list of open bugs. It was fortunate you emailed me directly :).

Ok reopening the bug now, will try get to it reasonably soon.

George
Comment 13 Castelão 2003-07-05 17:26:35 UTC
Comment on attachment 10702 [details]
Stable version

Obsolete by bug 23977
Comment 14 George Shapovalov (RETIRED) gentoo-dev 2003-07-07 23:29:51 UTC
Thanks for an update! Will try to get to the new one soon.

George

*** This bug has been marked as a duplicate of 23977 ***