Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2013 17:26:28 +0400
From:      "Anton Yuzhaninov" <ayuzhaninov@openstat.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178809: [PATCH] www/yuicompressor: update to 2.4.8
Message-ID:  <E1UemaC-000OjG-TI@mail.openstat.ru>
Resent-Message-ID: <201305211340.r4LDe1wp014755@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178809
>Category:       ports
>Synopsis:       [PATCH] www/yuicompressor: update to 2.4.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 21 13:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Anton Yuzhaninov
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD citrin.office.vega.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r250144: Wed May  1 21:01:29
>Description:
Update to 2.4.8. Relese announce:
http://www.yuiblog.com/blog/2013/05/16/yuicompressor-2-4-8-released/
>How-To-Repeat:
>Fix:

--- yuicompressor-2.4.8.patch begins here ---
diff -ruN /usr/ports//www/yuicompressor/Makefile ./Makefile
--- /usr/ports//www/yuicompressor/Makefile	2013-04-22 17:27:47.000000000 +0400
+++ ./Makefile	2013-05-21 17:15:51.000000000 +0400
@@ -2,20 +2,24 @@
 # $FreeBSD: www/yuicompressor/Makefile 316230 2013-04-22 13:27:47Z bapt $
 
 PORTNAME=	yuicompressor
-PORTVERSION=	2.4.7
+PORTVERSION=	2.4.8
 CATEGORIES=	www java
-MASTER_SITES=	http://yui.zenfs.com/releases/yuicompressor/
+MASTER_SITES=	http://tml.github.io/yui/
+DISTNAME=	${PORTNAME}-${PORTVERSION}.jar
+EXTRACT_SUFX=	# empty
+EXTRACT_ONLY=	# empty
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	The Yahoo! JavaScript and CSS Compressor
 
-USE_ZIP=	yes
+NO_WRKSUBDIR=	yes
+
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/yuicompressor %%DATADIR%%/yuicompressor.jar
-PLIST_DIRS=	%%DATADIR%%
+PLIST_FILES=	bin/yuicompressor %%JAVAJARDIR%%/yuicompressor.jar
+PLIST_DIRS=	%%JAVAJARDIR%%
 SUB_FILES=	yuicompressor
 
 PORTDOCS=	README
@@ -23,14 +27,8 @@
 .include <bsd.port.pre.mk>
 
 do-install:
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/build/yuicompressor-${PORTVERSION}.jar ${DATADIR}/yuicompressor.jar
+	@${MKDIR} ${JAVAJARDIR}
+	${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${JAVAJARDIR}/yuicompressor.jar
 	${INSTALL_SCRIPT} ${WRKDIR}/yuicompressor ${PREFIX}/bin
 
-post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR}
-.endif
-
 .include <bsd.port.post.mk>
diff -ruN /usr/ports//www/yuicompressor/distinfo ./distinfo
--- /usr/ports//www/yuicompressor/distinfo	2012-07-14 18:29:18.000000000 +0400
+++ ./distinfo	2013-05-21 17:16:04.000000000 +0400
@@ -1,2 +1,2 @@
-SHA256 (yuicompressor-2.4.7.zip) = fb289b12733934a79032c86d674301a144b25e3e86d26f060b44c8636cdb89ae
-SIZE (yuicompressor-2.4.7.zip) = 2000350
+SHA256 (yuicompressor-2.4.8.jar) = 852cea60054a4b5c58fee4bc1e8c48551e6ff6bb45803ce86400bcf607d304ed
+SIZE (yuicompressor-2.4.8.jar) = 786897
diff -ruN /usr/ports//www/yuicompressor/files/yuicompressor.in ./files/yuicompressor.in
--- /usr/ports//www/yuicompressor/files/yuicompressor.in	2012-07-14 18:29:18.000000000 +0400
+++ ./files/yuicompressor.in	2013-05-21 17:19:12.000000000 +0400
@@ -1,2 +1,2 @@
 #!/bin/sh
-JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/yuicompressor.jar $@
+JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%JAVAJARDIR%%/yuicompressor.jar $@
--- yuicompressor-2.4.8.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1UemaC-000OjG-TI>