This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygport: Adding arbitrary files to the src package


On 5/7/2012 12:33 PM, Corinna Vinschen wrote:
Hi Yaakov,


assuming I'd like to add some arbitrary files to the source package, so that the -src package looks like this:

   foo-3.4.5.tar.bz2
   foo-3.4.5-1.cygport
   foo-3.4.5-1.cygwin.patch
   foo-3.4.5-1.src.patch
   arbitrary-file-1
   arbitrary-file-2

The idea here is that the files are neither part of the sources, nor do
I want the files to be part of the patches since they aren't patches.
They are just some files which should show up in the source package for
some dubious reason of my own.

2 possible ways:


1) as additional sources as SRC_URI accepts multiples files,

2) as dedicated patch as PATCH_URI accept multiple files.

On lapack I use both the two solutions, for different reason:

SRC_URI="http://www.netlib.org/lapack/${ORIG_PN}-${PV}.tgz
http://www.netlib.org/cblas_20110120.tgz
http://www.netlib.org/lapack/manpages-3.4.0.tgz";

PATCH_URI="cblas-cmake.patch
lapack-dll.patch"

For you case PATCH_URI should be better (IMHO), as first case unlikely put the files in the right place and you will need to redefine "src_unpack_hook()" plus CYGPORT_USE_UNSTABLE_API=1
for moving them around.




I looked into the __pkg_srcpkg() function in lib/pkg_pkg.cygpart, but I don't see any way to accomplish this.


Corinna


Marco



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]