Date: Tue, 11 Mar 2008 02:45:05 GMT From: Mitchell Smith <mjs@bur.st> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/121588: New Port: www/grails: web framework based on Groovy Message-ID: <200803110245.m2B2j5JL022220@www.freebsd.org> Resent-Message-ID: <200803110250.m2B2o3Pf071251@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 121588 >Category: ports >Synopsis: New Port: www/grails: web framework based on Groovy >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 11 02:50:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Mitchell Smith >Release: 7.0 >Organization: >Environment: >Description: Grails is a web framework based on Groovy found at http://grails.codehaus.org/. This package is currently not available in the FreeBSD ports tree. >How-To-Repeat: >Fix: I have attached a shar for the current stable release of Grails to this problem report. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # grails # grails/pkg-descr # grails/distinfo # grails/Makefile # grails/pkg-message # grails/files # grails/files/set-grails_home.sed.in # echo c - grails mkdir -p grails > /dev/null 2>&1 echo x - grails/pkg-descr sed 's/^X//' >grails/pkg-descr << 'END-of-grails/pkg-descr' XGrails aims to bring the "coding by convention" paradigm to Groovy. It's an open-source web application framework that Xleverages the Groovy language and complements Java Web development. You can use Grails as a standalone development Xenvironment that hides all configuration details or integrate your Java business logic. Grails aims to make development as Xsimple as possible and hence should appeal to a wide range of developers not just those from the Java community. END-of-grails/pkg-descr echo x - grails/distinfo sed 's/^X//' >grails/distinfo << 'END-of-grails/distinfo' XMD5 (grails-bin-1.0.1.tar.gz) = 17490024e2efd1d6728aff4b5db7d3b0 XSHA256 (grails-bin-1.0.1.tar.gz) = 0c65af80e270e135f89b5c3dac107dfcd99b2649bccb5681f45f44e9c7ab7d6a XSIZE (grails-bin-1.0.1.tar.gz) = 29267647 END-of-grails/distinfo echo x - grails/Makefile sed 's/^X//' >grails/Makefile << 'END-of-grails/Makefile' X# New ports collection makefile for: grails X# Date created: 2008-03-10 X# Whom: Mitchell Smith <mjs@bur.st> X# X# $FreeBSD$ X# X XPORTNAME= grails XDISTVERSION= 1.0.1 XCATEGORIES= www java XMASTER_SITES= http://dist.codehaus.org/grails/ XDISTNAME= ${PORTNAME}-bin-${PORTVERSION} X XMAINTAINER= mjs@bur.st XCOMMENT= Web framework built on Groovy X XWRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:U} X XUSE_JAVA= yes XJAVA_VERSION= 1.4+ XNO_BUILD= yes XDATADIR= ${JAVASHAREDIR}/${PORTNAME} XDATAFILES= LICENSE conf dist media lib scripts XSCRIPTFILES= grails grails-debug startGrails X X.if !defined(NOPORTDOCS) XPORTDOCS= api X.endif XPLIST_FILES= ${SCRIPTFILES:S,^,bin/,} XSUB_FILES= set-grails_home.sed X Xdo-install: X @${ECHO_MSG} -n ">> Installing data files in ${DATADIR}..." X @cd ${WRKSRC} \ X && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \ X && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \; X @${ECHO_MSG} " [ DONE ]" X @${ECHO_MSG} -n ">> Installing executables in ${PREFIX}/bin..." X @${REINPLACE_CMD} -f ${WRKDIR}/set-grails_home.sed ${WRKSRC}/bin/startGrails X.for file in ${SCRIPTFILES} X @${ECHO_MSG} -n " ${file}" X @${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${PREFIX}/bin/ X.endfor X @${ECHO_MSG} " [ DONE ]" X.if !defined(NOPORTDOCS) X @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." X @cd ${WRKSRC}/doc \ X && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ X && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; X @${ECHO_MSG} " [ DONE ]" X.endif X Xpost-install: X @${FIND} -s ${DATAFILES:S,^,${WRKSRC}/,} -not -type d 2>/dev/null | \ X ${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST} X @${FIND} -s -d ${DATAFILES:S,^,${WRKSRC}/,} -type d 2>/dev/null | \ X ${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST} X @${ECHO_CMD} '@dirrm ${DATADIR:S,^${PREFIX}/,,}' >> ${TMPPLIST} X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-grails/Makefile echo x - grails/pkg-message sed 's/^X//' >grails/pkg-message << 'END-of-grails/pkg-message' XBefore you start using Grails you will need to set the GRAILS_HOME environment variable to /usr/local/share/java/grails X XDocumentation on creating your first Grails application can be found at the Grails website http://grails.codehaus.org/ X END-of-grails/pkg-message echo c - grails/files mkdir -p grails/files > /dev/null 2>&1 echo x - grails/files/set-grails_home.sed.in sed 's/^X//' >grails/files/set-grails_home.sed.in << 'END-of-grails/files/set-grails_home.sed.in' X# $FreeBSD$ X14i\ X: ${GRAILS_HOME="%%DATADIR%%"} X14i\ X[ -z "${JAVA_HOME}" ] && JAVA_HOME="`env JAVAVM_DRYRUN=yes %%LOCALBASE%%/bin/java | grep '^JAVA_HOME' | cut -c11-`" END-of-grails/files/set-grails_home.sed.in exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803110245.m2B2j5JL022220>