Date: Sat, 27 Jun 2015 21:21:33 +0000 (UTC) From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390734 - head/lang/elixir Message-ID: <201506272121.t5RLLXBB002602@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lwhsu Date: Sat Jun 27 21:21:33 2015 New Revision: 390734 URL: https://svnweb.freebsd.org/changeset/ports/390734 Log: - Set LANG=en_US.UTF-8 in MAKE_ENV, because sometimes Elixir will complain about not having an UTF-8 locale when building in poudriere (which may affect binary packages). - Install source files (with a SRC option, default on), which can then be used by Emacs' alchemist-mode.el to provide a working "go to source" function. - Remove pkg-plist, which is now mostly auto-generated. PR: 201125 Submitted by: olgeni Deleted: head/lang/elixir/pkg-plist Modified: head/lang/elixir/Makefile Modified: head/lang/elixir/Makefile ============================================================================== --- head/lang/elixir/Makefile Sat Jun 27 21:03:03 2015 (r390733) +++ head/lang/elixir/Makefile Sat Jun 27 21:21:33 2015 (r390734) @@ -4,6 +4,7 @@ PORTNAME= elixir PORTVERSION= 1.0.4 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= lang MAINTAINER= lwhsu@FreeBSD.org @@ -17,8 +18,33 @@ RUN_DEPENDS= erlang>=17:${PORTSDIR}/lang USE_GITHUB= yes GH_ACCOUNT= elixir-lang -USES= gmake - +USES= gmake +MAKE_ENV= LANG=en_US.UTF-8 ALL_TARGET= #empty +OPTIONS_DEFINE= SRC +OPTIONS_DEFAULT=SRC + +SRC_DESC= Install source code + +PLIST_FILES= bin/elixir \ + bin/elixirc \ + bin/iex \ + bin/mix + +.include <bsd.port.options.mk> + +post-install: +.if ${PORT_OPTIONS:MSRC} + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib + cd ${WRKSRC}/lib/ && for lib in *; do \ + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \ + cd ${WRKSRC}/lib/$${lib}/lib && \ + ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \ + done +.endif + @cd ${STAGEDIR}${PREFIX}; ${FIND} lib/elixir/* -type f -o -type l \ + | ${SORT} \ + >> ${TMPPLIST} + .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506272121.t5RLLXBB002602>