diff options
author | danfe <danfe@FreeBSD.org> | 2016-04-16 18:35:02 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2016-04-16 18:35:02 +0800 |
commit | cbd82102009686464f43f32dd632014cf6b09c9e (patch) | |
tree | 628fcfd144ab7a67255dc100c20fdc711e44497f | |
parent | 7878f7449e15738679dae29be2c548225c46faac (diff) | |
download | freebsd-ports-gnome-cbd82102009686464f43f32dd632014cf6b09c9e.tar.gz freebsd-ports-gnome-cbd82102009686464f43f32dd632014cf6b09c9e.tar.zst freebsd-ports-gnome-cbd82102009686464f43f32dd632014cf6b09c9e.zip |
- 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
-rw-r--r-- | x11-fm/ultracopier/Makefile | 39 | ||||
-rw-r--r-- | x11-fm/ultracopier/distinfo | 4 | ||||
-rw-r--r-- | x11-fm/ultracopier/files/patch-ultracopier-core.pro | 13 |
3 files changed, 31 insertions, 25 deletions
diff --git a/x11-fm/ultracopier/Makefile b/x11-fm/ultracopier/Makefile index bb76025f2fe0..d3465dff5559 100644 --- a/x11-fm/ultracopier/Makefile +++ b/x11-fm/ultracopier/Makefile @@ -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= qmake tar:xz +USE_QT5= buildtools_build linguisttools_build \ + core gui network widgets xml +QMAKE_ARGS= LRELEASE="${LRELEASE}" ultracopier-core.pro -USES= cmake desktop-file-utils tar:bzip2 -CMAKE_ARGS+= -DCMAKE_BUILD_KDE4:bool=true -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +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> diff --git a/x11-fm/ultracopier/distinfo b/x11-fm/ultracopier/distinfo index 293e5348736b..ca16c8e74b59 100644 --- a/x11-fm/ultracopier/distinfo +++ b/x11-fm/ultracopier/distinfo @@ -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 diff --git a/x11-fm/ultracopier/files/patch-ultracopier-core.pro b/x11-fm/ultracopier/files/patch-ultracopier-core.pro new file mode 100644 index 000000000000..88ff52397d63 --- /dev/null +++ b/x11-fm/ultracopier/files/patch-ultracopier-core.pro @@ -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 |