Re: [Fink-devel] Questions about .info file

2004-01-27 Thread Daniel Macks
On Mon, Jan 26, 2004 at 06:54:43PM -0500, James Gibbs wrote:
> On Jan 25, 2004, at 8:44 PM, James Gibbs wrote:
> >On Jan 25, 2004, at 10:33 AM, Pierre Mazoyer wrote:
> >
> >>## Dependencies
> >>Depends: tcltk (>= 8.0), tcltk-dev (>= 8.0), tcltk-shlibs (>= 8.0)
> 
> Forgot to mention that versioned deps have to have a revision, like:
> 
> Depends: tcltk (>= 8.0.0-1), etc.

As I understand Services::version_cmp(), the revision can be omitted,
in which case it defaults to "" (which compares numerically as zero).

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Questions about .info file

2004-01-26 Thread James Gibbs
On Jan 25, 2004, at 8:44 PM, James Gibbs wrote:

On Jan 25, 2004, at 10:33 AM, Pierre Mazoyer wrote:

## Dependencies
Depends: tcltk (>= 8.0), tcltk-dev (>= 8.0), tcltk-shlibs (>= 8.0)

Forgot to mention that versioned deps have to have a revision, like:

Depends: tcltk (>= 8.0.0-1), etc.

James



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Questions about .info file

2004-01-25 Thread James Gibbs
On Jan 25, 2004, at 10:33 AM, Pierre Mazoyer wrote:

The software I am trying to port is bsvc (a Motorola 68000 simulator & 
assembler).

I managed to patch and compile it and I have also started to write 
.info and .patch files.

Another question is about documentation.
Is "DocFiles:" sufficient to automatically copy documentation files to 
%i/share/doc/%n?
Is there a way to recursively add the content of a doc folder (with 
something like doc/*)?
In the install script, you can do something like 'mkdir -p 
%i/share/doc/%n', followed by 'cp -R doc/ %i/share/doc/%n'.

And finally, I have put .info and .patch files in 
/sw/fink/dists/local/main to test them. But "fink install" tells me 
"Failed: no package found for specification 'bsvc'!"
II run "fink scanpackages" but It does not change anything...
How to manually add a package to test it? (I would like to test the 
whole procedure, downloading sources included)
Like Martin pointed out, they go in /sw/fink/dists/local/main/finkinfo/.

Here is the .info file, can you tell me if something is wrong or 
missing?

## Package information
Package: bsvc
Version: 2.1
Revision: 1
Description: Motorola 68000 simulator & assembler
License: Restrictive/Distributable
Maintainer: Pierre Mazoyer <[EMAIL PROTECTED]>
## Dependencies
Depends: tcltk (>= 8.0), tcltk-dev (>= 8.0), tcltk-shlibs (>= 8.0)
-dev packages are normally BuildDepends, rather than depends.

Also, check through the configure readout for possible use of fink 
packages. Do a '.configure --help' to look for possible use of fink 
packages. For example, if there is an option --with-qt, you either have 
to use --with-qt and depend on qt, or use --without qt. Finally, when 
you are done, do 'otool -L 68kasm' to look for lib linkages, any in /sw 
generally mean a fink dep and builddep.

## Unpack Phase
Source: ftp://ftp.redlinelabs.com/pub/bsvc/%n-%v-src.tar.gz
Source-MD5: d6ea564a0fc73fe96a16b503c811d865
## Patch Phase
Patch: %f.patch
We've been switching to %n.patch. .info files are now called bsvc.info. 
.patch files are now called .bsvc.patch.
And don't forget to page through your .patch to make sure it is 
correct. Good luck.

James



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Questions about .info file

2004-01-25 Thread Martin Costabel
Pierre Mazoyer wrote:

I had also to change some settings in the common makefile, but I am not 
sure how to do this.
The best way to learn this is still by example: Look at other info files.

SetPROJECT_BASE: %b
SetFOO only works for some specific variables, see the packaging 
reference guide 
http://fink.sourceforge.net/doc/packaging/reference.php#fields

How can I define an environment variable in the .info file?
You can set env variables in the CompileScript, either on the command 
line or in a multiline script started by #!/bin/sh

Another question is about documentation.
Is "DocFiles:" sufficient to automatically copy documentation files to 
%i/share/doc/%n?
Yes, but no subdirectories.

Is there a way to recursively add the content of a doc folder (with 
something like doc/*)?
Subdirectories still have to be copied by hand, AFAIK.

And finally, I have put .info and .patch files in 
/sw/fink/dists/local/main to test them. But "fink install" tells me 
"Failed: no package found for specification 'bsvc'!"
You forgot the finkinfo directory. If you have foo/bar in the Trees line 
of your /sw/etc/fink.conf, fink looks in /sw/fink/dists/foo/bar/finkinfo


Here is the .info file, can you tell me if something is wrong or missing?
[]
## Compile Phase
SetPROJECT_BASE: %b
CompileScript:
  make -f src/Makefile.MacOSX all
Two possibilities (I don't know if a) works in your situation)

a)
CompileScript: PROJECT_BASE=%b make -f src/Makefile.MacOSX all
b)
CompileScript: <<
#!/bin/sh
export PROJECT_BASE=%b
make -f src/Makefile.MacOSX all
<<
## Install Phase
InstallScript:
  make -f src/Makefile.MacOSX install
This sound suspiciously like it would install directly into /sw. Bad!
You probably need something like DESTDIR=%d or prefix=%i
--
Martin


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Questions about .info file

2004-01-25 Thread Pierre Mazoyer
Thank you to all the people who answered me about creating a .patch 
file.
I would enjoy to help the community by porting some software; but now I 
am still learning ;-)

The software I am trying to port is bsvc (a Motorola 68000 simulator & 
assembler).

I managed to patch and compile it and I have also started to write 
.info and .patch files.

The software uses simple makefiles (not automake) and I had to create a 
makefile for Mac OS X (diff should have added it into the .patch, 
right?).

I had also to change some settings in the common makefile, but I am not 
sure how to do this.
I explain: there is a PROJECT_BASE environment variable to set in this 
file. But I cannot set it here, because only fink know this 
information.

So I thought I had to define it in the .info file using %b expansion:

SetPROJECT_BASE: %b

But "fink validate" does not like this :-(
How can I define an environment variable in the .info file?
Another question is about documentation.
Is "DocFiles:" sufficient to automatically copy documentation files to 
%i/share/doc/%n?
Is there a way to recursively add the content of a doc folder (with 
something like doc/*)?

And finally, I have put .info and .patch files in 
/sw/fink/dists/local/main to test them. But "fink install" tells me 
"Failed: no package found for specification 'bsvc'!"
II run "fink scanpackages" but It does not change anything...
How to manually add a package to test it? (I would like to test the 
whole procedure, downloading sources included)

Here is the .info file, can you tell me if something is wrong or 
missing?

## Package information
Package: bsvc
Version: 2.1
Revision: 1
Description: Motorola 68000 simulator & assembler
License: Restrictive/Distributable
Maintainer: Pierre Mazoyer <[EMAIL PROTECTED]>
## Dependencies
Depends: tcltk (>= 8.0), tcltk-dev (>= 8.0), tcltk-shlibs (>= 8.0)
## Unpack Phase
Source: ftp://ftp.redlinelabs.com/pub/bsvc/%n-%v-src.tar.gz
Source-MD5: d6ea564a0fc73fe96a16b503c811d865
## Patch Phase
Patch: %f.patch
## Compile Phase
SetPROJECT_BASE: %b
CompileScript:
  make -f src/Makefile.MacOSX all
## Install Phase
InstallScript:
  make -f src/Makefile.MacOSX install
DocFiles: Announce.doc Changes.doc License.doc MailList.doc 
Projects.doc Sim68000.doc Sim68360.doc Unix.doc Windows.doc doc/*

## Additional information
Homepage: http://www.redlinelabs.com/bsvc/
DescDetail: <<
BSVC is a microprocessor simulation framework written in C++ and Tcl/Tk.
The BSVC distribution contains the following:
- Motorola 68000 simulator & assembler (Supports the M68681 Dual UART 
and Timer)
- Motorola 68360 simulator (CPU32 like simulator)
- BSVC Graphical User Interface (written in Tcl/Tk)
- BSVC Simulator Framework (C++ classes)

Copyright © 1996 - 2001 by Bradford W. Mott
<<
DescUsage: <<
Use 68kasm to assemble your source file.
Usage: 68kasm [-clna] infile.ext
Options: -c  Show full constant expansions for DC directives
 -l  Produce listing file (infile.lis)
 -n  Produce NO object file (infile.h68)
 -a  Produce long word absolute addresses only (infile.h68)
Run bsvc to simulate your program.

Check http://www.redlinelabs.com/bsvc/ for more information.
<<
Thank you again for your help.

Pierre

---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel