# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 67864 2010-05-20 07:52:00Z ryandesign@macports.org $

PortSystem              1.0

name                    nodejs
version                 0.1.92
categories              devel net
platforms               darwin
maintainers             gmail.com:ceager mgrimes openmaintainer

description             Evented I/O for V8 JavaScript

long_description        Node's goal is to provide an easy way to build scalable network programs in JavaScript. \
                        Node is similar in design to and influenced by systems like Ruby's Event \
                        Machine or Python's Twisted. Node takes the event model a bit further-it \
                        presents the event loop as a language construct instead of as a library.

homepage                http://nodejs.org/
master_sites            ${homepage}dist/

checksums               md5     6f49c25a73e9bf0d23363917ab9b1c5f \
                        sha1    e58e9ba26cf2869bc4dbe6ddd9ebecac48b04be3 \
                        rmd160  e57f837efedc2814e76691c8b05291ba01fd1692

distname                node-v${version}

depends_lib-append      port:gnutls \
                        port:openssl

# V8 only supports ARM and IA-32 processors
universal_variant       no

test.run                yes

# TODO: Fix the doc installation
#variant doc description {Build and install manpages} {
#    use_configure   no
#    build {}
#    destroot.target doc install
#
#    depends_lib-append      port:asciidoc \
#                            port:libxslt
#}
