Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2016 10:35:02 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r413427 - in head/x11-fm/ultracopier: . files
Message-ID:  <201604161035.u3GAZ2sJ032782@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sat Apr 16 10:35:02 2016
New Revision: 413427
URL: https://svnweb.freebsd.org/changeset/ports/413427

Log:
  - Upgrade to version 1.2.1.0 and thus unbreak; it no longer requires KDE
    bits and is based on Qt 5.x now
  - Drop `desktop-file-utils' from USES as installed .desktop file has its
    MimeType field empty
  - Do not attempt to create ${STAGEDIR}${DESKTOPDIR}: `share/applications'
    was added to mtree (Templates/BSD.local.dist) in r331266 2.5 years ago

Added:
  head/x11-fm/ultracopier/files/
  head/x11-fm/ultracopier/files/patch-ultracopier-core.pro   (contents, props changed)
Modified:
  head/x11-fm/ultracopier/Makefile
  head/x11-fm/ultracopier/distinfo

Modified: head/x11-fm/ultracopier/Makefile
==============================================================================
--- head/x11-fm/ultracopier/Makefile	Sat Apr 16 10:17:57 2016	(r413426)
+++ head/x11-fm/ultracopier/Makefile	Sat Apr 16 10:35:02 2016	(r413427)
@@ -2,49 +2,42 @@
 # $FreeBSD$
 
 PORTNAME=	ultracopier
-PORTVERSION=	0.2.0.16
-PORTREVISION=	8
-CATEGORIES=	x11-fm kde
+PORTVERSION=	1.2.1.0
+CATEGORIES=	x11-fm
 MASTER_SITES=	http://files.first-world.info/ultracopier/${PORTVERSION}/
 DISTNAME=	${PORTNAME}-src-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Advanced file copier
 
-BROKEN=		unfetchable
-
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USE_KDE4=	automoc4 kdelibs
-USE_QT4=	corelib dbus gui moc_build network qmake_build rcc_build svg \
-		uic_build xml xmlpatterns
-
-USES=		cmake desktop-file-utils tar:bzip2
-CMAKE_ARGS+=	-DCMAKE_BUILD_KDE4:bool=true
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USES=		qmake tar:xz
+USE_QT5=	buildtools_build linguisttools_build \
+		core gui network widgets xml
+QMAKE_ARGS=	LRELEASE="${LRELEASE}" ultracopier-core.pro
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-src
 
-PLIST_FILES=	${DESKTOPDIR:Q}/ultracopier.desktop \
-		bin/ultracopier \
+PLIST_FILES=	bin/ultracopier share/applications/ultracopier.desktop \
 		share/icons/hicolor/16x16/apps/ultracopier.png \
 		share/icons/hicolor/128x128/apps/ultracopier.png
 
 post-patch:
-	@${REINPLACE_CMD} -E \
-		-e 's|0\.2\.0\.15|0.2.0.16|; \
-		s|0,2,0,15|0,2,0,16|' \
-		${WRKSRC}/src/var.h
+	@${GREP} -Rl Q_OS_LINUX ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+		s/Q_OS_LINUX/Q_OS_UNIX/
+	@${REINPLACE_CMD} -e '/crackedVersion=/s,false,true,' \
+		${WRKSRC}/EventDispatcher.cpp
 
-post-install:
-# install icons
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 .for dimensions in 16x16 128x128
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${dimensions}/apps
-	${INSTALL_DATA} ${WRKSRC}/src/other/ultracopier-${dimensions}.png \
+	${INSTALL_DATA} ${WRKSRC}/resources/ultracopier-${dimensions}.png \
 		${STAGEDIR}${PREFIX}/share/icons/hicolor/${dimensions}/apps/ultracopier.png
 .endfor
-# install desktop file
-	@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
-	${INSTALL_DATA} ${WRKSRC}/src/other/ultracopier.desktop \
+	${INSTALL_DATA} ${WRKSRC}/resources/ultracopier.desktop \
 		${STAGEDIR}${DESKTOPDIR}
 
 .include <bsd.port.mk>

Modified: head/x11-fm/ultracopier/distinfo
==============================================================================
--- head/x11-fm/ultracopier/distinfo	Sat Apr 16 10:17:57 2016	(r413426)
+++ head/x11-fm/ultracopier/distinfo	Sat Apr 16 10:35:02 2016	(r413427)
@@ -1,2 +1,2 @@
-SHA256 (ultracopier-src-0.2.0.16.tar.bz2) = 3c965899c491ddaa7381de805a62557d224a70c3379f68bb2a24f4bf07d36f30
-SIZE (ultracopier-src-0.2.0.16.tar.bz2) = 430736
+SHA256 (ultracopier-src-1.2.1.0.tar.xz) = ad3cf3ece0129cd6995a9d9e5b92418b9988359c81098b4d358e3820e458d8e2
+SIZE (ultracopier-src-1.2.1.0.tar.xz) = 604344

Added: head/x11-fm/ultracopier/files/patch-ultracopier-core.pro
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fm/ultracopier/files/patch-ultracopier-core.pro	Sat Apr 16 10:35:02 2016	(r413427)
@@ -0,0 +1,13 @@
+--- ultracopier-core.pro.orig	2015-04-14 21:52:19 UTC
++++ ultracopier-core.pro
+@@ -21,6 +21,10 @@ TRANSLATIONS += plugins/Languages/ar/tra
+     plugins/Languages/tr/translation.ts \
+     plugins/Languages/zh/translation.ts
+ 
++for (ts, TRANSLATIONS) {
++    system($$LRELEASE $$ts)
++}
++
+ TARGET = ultracopier
+ macx {
+     ICON = resources/ultracopier.icns



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604161035.u3GAZ2sJ032782>