annotate urweb.ebuild @ 1739:c414850f206f

Add support for -boot flag, which allows in-tree execution of Ur/Web The boot flag rewrites most hardcoded paths to point to the build directory, and also forces static compilation. This is convenient for developing Ur/Web, or if you cannot 'sudo make install' Ur/Web. The following changes were made: * Header files were moved to include/urweb instead of include; this lets FFI users point their C_INCLUDE_PATH at this directory at write <urweb/urweb.h>. For internal Ur/Web executables, we simply pass -I$PATH/include/urweb as normal. * Differentiate between LIB and SRCLIB; SRCLIB is Ur and JavaScript source files, while LIB is compiled products from libtool. For in-tree compilation these live in different places. * No longer reference Config for paths; instead use Settings; these settings can be changed dynamically by Compiler.enableBoot () (TODO: add a disableBoot function.) * config.h is now generated directly in include/urweb/config.h, for consistency's sake (especially since it gets installed along with the rest of the headers!) * All of the autotools build products got updated. * The linkStatic field in protocols now only contains the name of the build product, and not the absolute path. Future users have to be careful not to reference the Settings files to early, lest they get an old version (this was the source of two bugs during development of this patch.)
author Edward Z. Yang <ezyang@mit.edu>
date Wed, 02 May 2012 17:17:57 -0400
parents 3b57a6ddef1a
children
rev   line source
adam@1442 1 # Distributed under the terms of the BSD3 license
adam@1442 2
adam@1561 3 # This file needs to be renamed to something like "urweb-20110917.ebuild", to reflect the Ur/Web version to use.
adam@1442 4
adam@1442 5 inherit eutils
adam@1442 6
adam@1442 7 EAPI=3
adam@1442 8
adam@1442 9 DESCRIPTION="A domain-specific functional programming language for modern web applications"
adam@1442 10 HOMEPAGE="http://www.impredicative.com/ur/"
adam@1442 11 SRC_URI="http://www.impredicative.com/ur/${P}.tgz"
adam@1442 12
adam@1442 13 LICENSE="BSD"
adam@1442 14 SLOT="0"
adam@1442 15 KEYWORDS="~amd64 ~x86"
adam@1442 16 IUSE=""
adam@1442 17
adam@1442 18 DEPEND="dev-lang/mlton
adam@1442 19 dev-libs/openssl"
adam@1442 20 RDEPEND="${DEPEND}"
adam@1442 21
adam@1442 22 S="${WORKDIR}/urweb"
adam@1442 23
adam@1442 24 src_unpack() {
adam@1442 25 unpack ${A}
adam@1442 26 }
adam@1442 27
adam@1442 28 src_configure() {
adam@1442 29 econf || die
adam@1442 30 }
adam@1442 31
adam@1442 32 src_compile() {
adam@1442 33 emake || die
adam@1442 34 }
adam@1442 35
adam@1442 36 src_install() {
adam@1442 37 emake DESTDIR=${D} install || die
adam@1442 38 dodoc CHANGELOG || die
adam@1442 39 }