Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2001 09:31:10 +0200
From:      Oliver Braun <obraun@informatik.unibw-muenchen.de>
To:        freebsd-ports@freebsd.org
Subject:   Question: Porting nhc98
Message-ID:  <20010621093109.A32621@gaia.informatik.unibw-muenchen.de>

next in thread | raw e-mail | index | archive | help
Hi *,

currently I am going to try to build an nhc98 port
<URL:http://www.cs.york.ac.uk/fp/nhc98/>. nhc98 is a compiler for
Haskell 98. Before submitting the port I have some questions, about
"good style" porting.

nhc98 comes with an tracer. The default target will install nhc98 with
the tracer. I think you do not need the tracer  for all day work, but
for installing the tracer, you need JAVA. So my first idea is to add

 RUN_DEPENDS=    java:${PORTSDIR}/java/jdk
 BUILD_DEPENDS=  javac:${PORTSDIR}/java/jdk

to the Makefile. But unfortunately the binaries of jdk will not be
installed into /usr/local/bin, but into /usr/local/jdk1.1.8/bin, and
/usr/local/jdk1.1.8/bin is normally not in PATH.

My question is now how to handle this.
* Install without the tracer and drop the user a message?
* adjust the PATH,  so that javac etc.  can be found?
* Patch the sources so that javac will be /usr/local/jdk1.1.8/bin/javac
  etc.?
* Use an other JAVA implementation, i.e. KAFFE?

Any comments? Any other ideas?

Regards,
Olli
-- 
Dipl.-Inform. (Univ.) Oliver Braun
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010621093109.A32621>