vincent-hugot / qtest

Inline (Unit) Tests for OCaml
GNU General Public License v3.0
67 stars 8 forks source link

A package for OPAM would be nice #2

Closed UnixJunkie closed 11 years ago

UnixJunkie commented 11 years ago

;)

vincent-hugot commented 11 years ago

I have taken a look at the OPAM packaging tutorial, and it looks easy enough... I should be able to give it a try sometime next week.

UnixJunkie commented 11 years ago

Maybe start from some other existing OPAM package, just update the description and the build instructions. Should be easy.

vincent-hugot commented 11 years ago

I have a few issues for now, nothing fatal...

1° OPAM annoyingly does not seem to accept "cd" commands while building; but qtest is not at the root of the repository. issue

2° I just realised that I should configure under OPAM's prefix instead of /usr/local/lib etc.

(note: all on "opam" branch for now)

OPAM looks nice, though I wonder what such a small community as OCaml's needs three bloomin' package managers for... (oasis/odb, OPAM, GODI,...)

vincent-hugot commented 11 years ago

I removed my crummy shell scripts and switched to a slightly less crummy OCaml script that does what it takes to jump through OPAM's hoops (I have found testing that one's package actually works very cumbersome --- I hope I have missed something).

pull request

UnixJunkie commented 11 years ago

Have a look at a package using custom commands to build, that should be easier than trying to build via ocp-build: https://github.com/OCamlPro/opam-repository/blob/master/packages/parmap.1.0-rc1/opam

samoht commented 11 years ago

Not sure why you are using OCaml scripts to do call oasis scripts, when a very simple Makefile (as https://github.com/samoht/ocaml-rpc/blob/master/Makefile) would work.

vincent-hugot commented 11 years ago

@HappyCrow : I'm not using ocp-build... @samoht : simply because I'm just not at ease with Make (or shell scripts) -- I don't know them well, and I actively dislike what little I know of them. Since I'll need to maintain this package for a while, I'd rather go with something I like to do it, even if it's not the obvious choice.

vincent-hugot commented 11 years ago

Closing this, since the package is in OPAM's main repository now.

There is an issue with OASIS and un-installation, discussed in OCamlPro/opam-repository#187

UnixJunkie commented 11 years ago

The opam file for parmap does not use ocp-build either! :) It just call the shell commands to do the job.

vincent-hugot commented 11 years ago

Yes but I wasn't "trying to build via ocp-build" at all; you proposed it as an alternative to something I wasn't using or planning on using (also parmap relies on scary autoconf...)

Actually the simplest shell trick is, I think, that proposed by samoht in OCamlPro/opam#300.