From owner-svn-ports-all@FreeBSD.ORG Thu Dec 13 07:54:57 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8668B649; Thu, 13 Dec 2012 07:54:57 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6AD718FC1D; Thu, 13 Dec 2012 07:54:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBD7svDj080156; Thu, 13 Dec 2012 07:54:57 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBD7svR2080155; Thu, 13 Dec 2012 07:54:57 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201212130754.qBD7svR2080155@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 13 Dec 2012 07:54:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308830 - head/java/jrosetta X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 07:54:57 -0000 Author: bapt Date: Thu Dec 13 07:54:56 2012 New Revision: 308830 URL: http://svnweb.freebsd.org/changeset/ports/308830 Log: Convert to new option framework Modified: head/java/jrosetta/Makefile Modified: head/java/jrosetta/Makefile ============================================================================== --- head/java/jrosetta/Makefile Thu Dec 13 07:53:20 2012 (r308829) +++ head/java/jrosetta/Makefile Thu Dec 13 07:54:56 2012 (r308830) @@ -19,11 +19,12 @@ JAVA_RUN= yes PLIST_FILES= %%JAVAJARDIR%%/jrosetta-api.jar \ %%JAVAJARDIR%%/jrosetta-engine.jar -OPTIONS= COMPILE "Download and compile source instead of binaries" off +OPTIONS_DEFINE= COMPILE +COMPILE_DESC= Download and compile source instead of binaries .include -.if defined(WITH_COMPILE) +.if ${PORT_OPTIONS:MCOMPILE} DISTFILES= ${PORTNAME}-${PORTVERSION}-sources.jar:source BUILD_DEPENDS= mvn:${PORTSDIR}/devel/maven3 @@ -41,7 +42,7 @@ EXTRACT_ONLY= NO_BUILD= yes .endif -.if defined(WITH_COMPILE) +.if ${PORT_OPTIONS:MCOMPILE} post-patch: ${MKDIR} ${WRKDIR}/m2 ${CP} ${FILESDIR}/settings.xml ${WRKDIR} @@ -52,7 +53,7 @@ do-build: .endif do-install: -.if defined(WITH_COMPILE) +.if ${PORT_OPTIONS:MCOMPILE} ${INSTALL_DATA} ${OUTPUT}/jrosetta-api/${PORTVERSION}/jrosetta-api-${PORTVERSION}.jar \ ${JAVAJARDIR}/jrosetta-api.jar ${INSTALL_DATA} ${OUTPUT}/jrosetta-engine/${PORTVERSION}/jrosetta-engine-${PORTVERSION}.jar \