Info3: << Package: guile22 Version: 2.2.7 Revision: 6 BuildDepends: << fink (>= 0.32), fink-package-precedence, gc (>= 8.2.2-1), gettext-tools, gmp5, libffi8, libgettext8-dev, libiconv-dev, libncurses5 (>= 5.4-20041023-1006), libtool2 (>= 2.4-1), libunistring5, readline8 << Depends: << %N-shlibs (= %v-%r), %N-libs (= %v-%r), gmp5-shlibs, libffi8-shlibs, libgettext8-shlibs, libiconv, libtool2-shlibs, libunistring5-shlibs, # needed by guile-2.2-config pkgconfig << GCC: 4.0 Source: mirror:gnu:guile/guile-%v.tar.xz Source-Checksum: SHA256(cdf776ea5f29430b1258209630555beea6d2be5481f9da4d64986b077ff37504) Source2: http://archive.ubuntu.com/ubuntu/pool/main/g/guile-2.2/guile-2.2_%v+1-6build2.debian.tar.xz Source2-Checksum: SHA256(3daac51730495746b5ff0dd0004698c0d49223219e4400c237a7eaf78a331e30) # Fix -I ordering: # * Pass .pc BDW_GC_CFLAGS via automake foo_CPPFLAGS not CFLAGS, # completing the idea of # https://git.savannah.gnu.org/cgit/guile.git/commit?id=abd7e37ab734eef8520965f2c3f52d5138584ca0 # * Don't put abs_src_dir in CPPFLAGS (it's automatic in automake, and # would wind up in wrong order), redoing correctly # https://git.savannah.gnu.org/cgit/guile.git/commit?id=da7e43a6e0dadb2f96e6e33163bb4d94715f7498 # * Don't put redundant -I in testsuite build, upgrading the idea of # https://git.savannah.gnu.org/cgit/guile.git/commit?id=a66480374ed6dfc2d012c6df39c1382ba87ed9d0 PatchFile: %n.patch PatchFile-MD5: cc7410b6d5f4548544711ce66ca635a0 PatchScript: << #!/bin/sh -ev %{default_script} perl -i -pe 's|(lt_dlinit\s*\(\s*\))|\1; lt_dladdsearchdir("\%p/lib")|' libguile/dynl.c # When LIBICONV_PLUG is not defined (normal) iconv, iconv_open, iconv_close # are all #defined to libiconv* in , but this #undef messes it up. for f in lib/iconv*.c do sed -i.orig '/^#undef/d' $f done # fix typedef for function pointer sed -i.orig 's|void.*scm_t_subr|void (*scm_t_subr)()|' libguile/__scm.h # fix framework flag for CoreFoundation (defined in aclocal.m4) sed -i.orig 's|-Wl,-framework -Wl,CoreFoundation|-Wl,-framework,CoreFoundation|g' configure # make sure sed usage is portable to BSD sed perl -pi -e 's|\$\(SED\) -i -e|\$\(SED\) -i.bak -e|g' libguile/Makefile.in # convenient build script for use by other packages { echo '#!/bin/sh' echo 'export GUILE=guile-2.2' echo 'export GUILE_CONFIG=guile-2.2-config' echo 'export GUILE_TOOLS=guile-2.2-tools' echo 'export PATH="%p/share/guile/2.2/scripts/binoverride:$PATH"' echo 'eval "$@"' } > guile22-build chmod +x guile22-build ### apply debian patches, which mostly deal with known possible failing tests # Remove 0007-Mark-test-out-of-memory-as-an-expected-failure-for-n.patch because it patches Makefile.am which regenerates things and fails (non-existent automake-1.16). This test runs OK for us as is. rm ../debian/patches/0007-Mark-test-out-of-memory-as-an-expected-failure-for-n.patch for patch in ../debian/patches/*.patch; do patch -p1 < $patch done << ConfigureParams: << --disable-silent-rules \ --disable-static \ --infodir=%p/share/info \ --program-transform-name="s|guile|guile-2.2|g; s|guild|guild-2.2|g" \ ac_cv_path_SED=/usr/bin/sed \ -C << NoSetCPPFLAGS: true # incompatible pointer types are now an error in Xcode15, but they only happen in tests/, so just override. SetCPPFLAGS: -Wno-error=incompatible-function-pointer-types NoSetLDFLAGS: true CompileScript: << #!/bin/sh -ex mkdir build pushd build ../configure %c make popd fink-package-precedence --prohibit-bdep=%n-dev . << InfoTest: << TestScript: << #!/bin/sh -ev pushd build # make -k check || exit 2 make -k check || { echo "WARNING: Some tests failed in the testsuite." ;} popd fink-package-precedence --prohibit-bdep=%n-dev . << TestSuiteSize: small << InstallScript: << #!/bin/sh -ev pushd build make -j1 install DESTDIR=%d install -m 755 ../guile22-build %i/bin/guile22-build pkgdatadir=%i/share/guile/2.2 mkdir -p $pkgdatadir/scripts/binoverride ln -s %p/bin/guild-2.2 $pkgdatadir/scripts/binoverride/guild ln -s %p/bin/guile-2.2 $pkgdatadir/scripts/binoverride/guile ln -s %p/bin/guile-2.2-config $pkgdatadir/scripts/binoverride/guile-config ln -s %p/bin/guile-2.2-tools $pkgdatadir/scripts/binoverride/guile-tools ln -s %p/bin/guile-2.2-snarf $pkgdatadir/scripts/binoverride/guile-snarf << SplitOff: << Package: %N-shlibs Depends: << gc-shlibs (>= 8.2.2-1), gmp5-shlibs, libffi8-shlibs, libgettext8-shlibs, libiconv, libtool2-shlibs (>= 2.4-1), libunistring5-shlibs << Files: << lib/libguile-2.2.*.dylib << DocFiles: COPYING.LESSER Shlibs: << %p/lib/libguile-2.2.1.dylib 6.0.0 %n (>= 2.2.5-1) << Description: Shared libraries for guile22 << SplitOff2: << Package: %N-libs # extensions/*.la was in -dev for a while, but it's for .so runtime # loading, not compile-time linking Replaces: %N-dev Files: << share/guile/2.2/[A-Za-rt-z]* share/guile/2.2/scripts/[A-Zac-z]* share/guile/2.2/srfi share/guile/2.2/sxml lib/guile/2.2/ccache/[A-Za-rt-z]* lib/guile/2.2/ccache/scripts/[A-Zac-z]* lib/guile/2.2/ccache/srfi lib/guile/2.2/ccache/sxml lib/guile/2.2/extensions << DocFiles: COPYING.LESSER Depends: << %N-shlibs (= %v-%r), gc-shlibs (>= 8.2.2-1), gmp5-shlibs, libffi8-shlibs, libgettext8-shlibs, libiconv, libncurses5-shlibs (>= 5.4-20041023-1006), libtool2-shlibs (>= 2.4-1), libunistring5-shlibs, readline8-shlibs << Description: Scheme libraries and modules for guile22 DescPackaging: << Split-off everything except the system dir. Now contains precompiled guile objects for all shipped libraries. << << SplitOff3: << Package: %N-dev BuildDependsOnly: True Depends: %N-shlibs (= %v-%r) Replaces: << guile-dev, guile16-dev, guile18-dev, guile20-dev, guile22-dev << Conflicts: << guile-dev, guile16-dev, guile18-dev, guile20-dev, guile22-dev << Files: << include share/aclocal lib/libguile-2.2.la lib/libguile-2.2.dylib lib/pkgconfig << DocFiles: COPYING.LESSER Description: Development package for guile22 DescPackaging: << The only file that conflicts is %p/share/aclocal/guile.m4. All other files are versioned or in versioned subdirs. << << SplitOff4: << Package: %N-doc Conflicts: << guile16-doc, guile16 (<= 1.6.7-1011), guile18-doc, guile18-doc, guile20-doc, guile22-doc << Replaces: << guile16-doc, guile16 (<= 1.6.7-1011), guile18-doc, guile18-doc, guile20-doc, guile22-doc << DocFiles: COPYING.LESSER Files: share/info InfoDocs: guile.info r5rs.info Description: Texinfo files for guile22 << DocFiles: README COPYING.LESSER AUTHORS HACKING NEWS THANKS # Description: Embedable Scheme interpreter DescPort: << * 10.7's libffi is missing symbols, resulting in undefined references, thus we use fink's libffi. << DescPackaging: << Made main packages not conflict among different guile-X.X versions Since 1.9.13-2, bumped gmp to gmp5. Matthias Neeracher maintains guile18 and guile16. << License: LGPL Homepage: https://www.gnu.org/software/guile/ Maintainer: David Fang <<