From owner-freebsd-ports Fri Jun 22 2:52:13 2001 Delivered-To: freebsd-ports@freebsd.org Received: from gatesrv.RZ.UniBw-Muenchen.de (gatesrv.RZ.UniBW-Muenchen.de [137.193.11.27]) by hub.freebsd.org (Postfix) with ESMTP id D902C37B406 for ; Fri, 22 Jun 2001 02:52:04 -0700 (PDT) (envelope-from lizard@gaia.informatik.unibw-muenchen.de) Received: from gaia.informatik.unibw-muenchen.de (gaia.Informatik.UniBw-Muenchen.de [137.193.60.64]) by gatesrv.RZ.UniBw-Muenchen.de (8.11.2/8.11.2) with ESMTP id f5L7Vs122877 for ; Thu, 21 Jun 2001 09:31:54 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by gaia.informatik.unibw-muenchen.de (Postfix) with ESMTP id 88923115480 for ; Thu, 21 Jun 2001 09:31:41 +0200 (CEST) Received: by gaia.informatik.unibw-muenchen.de (Postfix, from userid 1001) id 92A3C115299; Thu, 21 Jun 2001 09:31:10 +0200 (CEST) Date: Thu, 21 Jun 2001 09:31:10 +0200 From: Oliver Braun To: freebsd-ports@freebsd.org Subject: Question: Porting nhc98 Message-ID: <20010621093109.A32621@gaia.informatik.unibw-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: University of the Federal Armed Forces Munich, Germany X-OS: FreeBSD 4.3-STABLE i386 X-Editor: Vim-600 http://www.vim.org/ X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi *, currently I am going to try to build an nhc98 port . 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