From owner-svn-ports-head@freebsd.org Thu Jun 29 16:44:02 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAB02DA0D99; Thu, 29 Jun 2017 16:44:02 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97E5F660E1; Thu, 29 Jun 2017 16:44:02 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5TGi1nJ096401; Thu, 29 Jun 2017 16:44:01 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5TGi15t096400; Thu, 29 Jun 2017 16:44:01 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201706291644.v5TGi15t096400@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Thu, 29 Jun 2017 16:44:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r444653 - head/devel/leiningen X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/devel/leiningen X-SVN-Commit-Revision: 444653 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2017 16:44:02 -0000 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: