Date: Thu, 29 Jun 2017 16:44:01 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r444653 - head/devel/leiningen Message-ID: <201706291644.v5TGi15t096400@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Thu Jun 29 16:44:01 2017 New Revision: 444653 URL: https://svnweb.freebsd.org/changeset/ports/444653 Log: - Debashify with a little bit of dark magic and use /bin/sh for lein - Remove pkg-message with outdated advice - Add LICENSE_FILE Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D11405 Deleted: head/devel/leiningen/pkg-message Modified: head/devel/leiningen/Makefile Modified: head/devel/leiningen/Makefile ============================================================================== --- head/devel/leiningen/Makefile Thu Jun 29 15:51:01 2017 (r444652) +++ head/devel/leiningen/Makefile Thu Jun 29 16:44:01 2017 (r444653) @@ -2,17 +2,17 @@ PORTNAME= leiningen PORTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= devel lisp java -MASTER_SITES= GH:source1 \ - https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:source2 -DISTFILES= ${DISTNAME}.tar.gz:source1 \ - leiningen-${PORTVERSION}-standalone.zip:source2 +MASTER_SITES= https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:standalone +DISTFILES= leiningen-${PORTVERSION}-standalone.zip:standalone EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER= tobik@FreeBSD.org COMMENT= Automate Clojure projects LICENSE= EPL +LICENSE_FILE= ${WRKSRC}/COPYING USE_GITHUB= yes GH_ACCOUNT= technomancy @@ -27,12 +27,17 @@ PLIST_FILES= bin/lein \ etc/bash_completion.d/_lein.bash \ man/man1/lein.1.gz \ share/zsh/site-functions/_lein \ - %%JAVAJARDIR%%/leiningen.jar + ${JAVAJARDIR}/leiningen.jar SHEBANG_FILES= bin/lein-pkg +bash_CMD= /bin/sh post-patch: - @${REINPLACE_CMD} -e "s|LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|" \ + @${REINPLACE_CMD} -E -e 's|function (.*) {|\1() {|' \ + -e 's|(local )-i |\1|' \ + -e 's|^if \[\[ (.*) \]\];|if [ \1 ];|' \ + -e 's|(BOOTCLASSPATH)\[@\]|\1|' \ + -e 's|^LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|' \ ${WRKSRC}/bin/lein-pkg do-install:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706291644.v5TGi15t096400>