Ticket #27374: caml-ounit_fix_1.1.0.patch
File caml-ounit_fix_1.1.0.patch, 2.4 KB (added by hashar@…, 14 years ago) |
---|
-
(a) Portfile-origin vs. (b) Portfile
a b 1 # $Id: Portfile 59418 2009-10-14 20:39:16Z avsm@macports.org $1 # $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $ 2 2 3 3 PortSystem 1.0 4 4 5 5 name caml-ounit 6 version 1. 0.36 version 1.1.0 7 7 categories devel ml 8 8 maintainers landonf openmaintainer 9 9 description Unit test framework for OCaml … … 12 12 It is based on HUnit, a unit testing framework for Haskell. \ 13 13 It is similar to JUnit, and other XUnit testing frameworks. 14 14 15 homepage http:// www.xs4all.nl/~mmzeeman/ocaml/15 homepage http://ounit.forge.ocamlcore.org/ 16 16 platforms darwin 17 master_sites ${homepage}17 master_sites https://forge.ocamlcore.org/frs/download.php/495/ 18 18 19 19 distname ounit-${version} 20 20 21 checksums md5 e0831c33cd18fdbf7615bb053e3792b9\22 sha1 fd5674ba094ed8d32c11618cd22d4efa58535a76\23 rmd160 35496f9df16121b4246074e79df0c5396e3faba721 checksums md5 bf82bd7f8853cd9a1aff7be716192643 \ 22 sha1 e477f8a1b4fcd6a838cbbc04450a80b1cea3456c \ 23 rmd160 f7d82446970f40eccc917a3ee57e7d6526b1b177 24 24 25 25 depends_lib port:ocaml \ 26 26 port:caml-findlib 27 27 28 livecheck.url http://forge.ocamlcore.org/frs/?group_id=162&release_id=339 28 29 livecheck.type regex 29 30 livecheck.regex {>ounit-(.*)\.tar\.gz} 30 31 … … 32 33 set ocaml_site_path [exec ocamlfind printconf destdir] 33 34 reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \ 34 35 ${worksrcpath}/Makefile 36 # 'configure' is not executable in 1.1.0 package 37 exec chmod +x ${worksrcpath}/configure 35 38 } 36 39 37 40 pre-destroot { … … 41 44 42 45 post-destroot { 43 46 xinstall -d -755 ${destroot}${prefix}/share/doc/${name} 44 eval xinstall -m 644 [glob ${worksrcpath}/ doc/*.html] \45 ${destroot} /${prefix}/share/doc/${name}47 eval xinstall -m 644 [glob ${worksrcpath}/_build/src/api-ounit.docdir/*] \ 48 ${destroot}${prefix}/share/doc/${name} 46 49 } 47 50 48 use_configure no 49 50 build.target allopt doc 51 configure.pre_args '' 52 build.target build doc