Menhir is an LR(1) parser generator for the Ocaml language. It is mostly compatiable with ocamlyacc, which is part of the ocaml standard distribution, but contains many enhancements.
Created attachment 303919 [details] menhir-20120123.ebuild
Created attachment 328724 [details] menhir-20120123.ebuild without some various bugs
Why do you install standard.mly into /usr/share/menhir?
(In reply to comment #3) > Why do you install standard.mly into /usr/share/menhir? Because without that, menhir will search for this file in /var/tmp/portage/dev-ml/…
src_prepare() { export PREFIX="${D}/usr" sed -i 's,echo "let libdir = \\"${libdir}\\"" > src/installation.ml,echo "let libdir = \\"/usr/share/menhir\\"" > src/installation.ml,' Makefile if ! use ocamlopt ; then export TARGET=byte fi } -> All these are not prefix-friendly, but I'd prefer leaving this to some prefix people and I don't like the sed: Can't you do emake PREFIX=${EPREFIX}/usr in src_compile and then emake PREFIX=${ED}/usr install in src_install ? (or just set the PREFIX variable) setting the TARGET variable probably belongs to src_configure also you should probably override the docdir variable too: so far its /usr/share/doc/menhir and we want /usr/share/doc/$PF you should dodoc the AUTHORS and CHANGES files too. and btw there's version 20130116 on the website
Created attachment 336792 [details] menhir-20130116.ebuild Update version. I tried to use all your suggestions, ebuild should be cleaner now.
(In reply to comment #6) > Created attachment 336792 [details] > menhir-20130116.ebuild > > Update version. I tried to use all your suggestions, ebuild should be > cleaner now. added with some improvements, thanks