Commit 6dac191c authored by olgeni's avatar olgeni
Browse files

Add devel/erlang-getopt, a getopt-like engine for Erlang.

parent f3ecca46
......@@ -409,6 +409,7 @@
SUBDIR += eric4
SUBDIR += eric6
SUBDIR += eris
SUBDIR += erlang-getopt
SUBDIR += erlang-msgpack
SUBDIR += erlang-mustache
SUBDIR += erlang-protobuffs
......
# $FreeBSD$
PORTNAME= getopt
PORTVERSION= 0.8.2
DISTVERSIONPREFIX=v
CATEGORIES= devel
PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Command line parsing library for Erlang
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB= VERSION="${PORTVERSION}"
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= jcomellas
.include <bsd.port.options.mk>
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
.include <bsd.port.mk>
SHA256 (jcomellas-getopt-v0.8.2_GH0.tar.gz) = bfeab0aeb3e515b1c2912874d6e644849561971d8d947ec4adc7c9ff4c394ea8
SIZE (jcomellas-getopt-v0.8.2_GH0.tar.gz) = 151272
--- Makefile.orig 2015-05-12 14:40:03 UTC
+++ Makefile
@@ -1,6 +1,6 @@
APPLICATION := getopt
-REBAR=$(shell which rebar || echo ./rebar)
+REBAR=./rebar
ERL := erl
EPATH := -pa ebin
Command line parsing module that uses a syntax similar to that of
GNU getopt.
WWW: https://github.com/jcomellas/getopt
lib/erlang/lib/getopt-%%VERSION%%/ebin/getopt.app
lib/erlang/lib/getopt-%%VERSION%%/ebin/getopt.beam
lib/erlang/lib/getopt-%%VERSION%%/src/getopt.app.src
lib/erlang/lib/getopt-%%VERSION%%/src/getopt.erl
%%PORTDOCS%%%%DOCSDIR%%/README.md
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment