aboutsummaryrefslogtreecommitdiffstats
path: root/polish/qnapi
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2008-07-05 08:56:04 +0800
committeredwin <edwin@FreeBSD.org>2008-07-05 08:56:04 +0800
commit530ada40404c49563905fe6f726265a15a79046b (patch)
treec145e384ffea08f8bba8452db54a3883b6a9000b /polish/qnapi
parent016acd086fe25e4bc3da8c5ff0210cd352497812 (diff)
downloadfreebsd-ports-gnome-530ada40404c49563905fe6f726265a15a79046b.tar.gz
freebsd-ports-gnome-530ada40404c49563905fe6f726265a15a79046b.tar.zst
freebsd-ports-gnome-530ada40404c49563905fe6f726265a15a79046b.zip
[NEW PORT] polish/qnapi
This is port of polish subtitle distribution project Qt4 client. WWW: http://krzemin.iglu.cz/?page_id=29 PR: ports/122909 Submitted by: "Pawel Pekala" <c0rn@o2.pl>
Diffstat (limited to 'polish/qnapi')
-rw-r--r--polish/qnapi/Makefile43
-rw-r--r--polish/qnapi/distinfo3
-rw-r--r--polish/qnapi/files/patch-doc-qnapi.desktop11
-rw-r--r--polish/qnapi/files/patch-doc-qnapi_download.desktop17
-rw-r--r--polish/qnapi/files/patch-doc-qnapi_download.schemas11
-rw-r--r--polish/qnapi/files/patch-qnapi.pro48
-rw-r--r--polish/qnapi/pkg-descr1
-rw-r--r--polish/qnapi/pkg-plist16
8 files changed, 150 insertions, 0 deletions
diff --git a/polish/qnapi/Makefile b/polish/qnapi/Makefile
new file mode 100644
index 000000000000..4ebb570229b0
--- /dev/null
+++ b/polish/qnapi/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: qnapi
+# Date created: 2008-02-15
+# Whom: Pawel Pekala <c0rn@o2.pl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qnapi
+PORTVERSION= 0.1.5
+CATEGORIES= polish multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= qnapi
+
+MAINTAINER= c0rn@o2.pl
+COMMENT= Unoffical napiprojekt.pl qt4 client
+
+RUN_DEPENDS= 7z:${PORTSDIR}/archivers/p7zip
+
+USE_QT_VER= 4
+QT_COMPONENTS= corelib gui network qmake_build moc_build uic_build
+INSTALLS_ICONS= yes
+
+MAN1= qnapi.1
+MANCOMPRESSED= yes
+PORTDOCS= ChangeLog changelog.gz README README.pl LICENSE \
+ LICENSE.pl COPYRIGHT
+
+post-patch:
+ @cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' qnapi.pro \
+ doc/qnapi.desktop doc/qnapi-download.desktop
+
+pre-build:
+ @cd ${WRKSRC} && ${QMAKE} -spec ${QMAKESPEC}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/polish/qnapi/distinfo b/polish/qnapi/distinfo
new file mode 100644
index 000000000000..1cbec7bab929
--- /dev/null
+++ b/polish/qnapi/distinfo
@@ -0,0 +1,3 @@
+MD5 (qnapi-0.1.5.tar.gz) = 503a34b4605507740bca5fbf6a20fbf8
+SHA256 (qnapi-0.1.5.tar.gz) = 88ef9e4c8a2e830b0b9b231888e0012d10ac5ab3b8df7a18d09f42ee7de7fa5d
+SIZE (qnapi-0.1.5.tar.gz) = 172405
diff --git a/polish/qnapi/files/patch-doc-qnapi.desktop b/polish/qnapi/files/patch-doc-qnapi.desktop
new file mode 100644
index 000000000000..4e0037176b1b
--- /dev/null
+++ b/polish/qnapi/files/patch-doc-qnapi.desktop
@@ -0,0 +1,11 @@
+--- doc/qnapi.desktop.orig Tue Feb 26 20:18:29 2008
++++ doc/qnapi.desktop Thu Apr 10 20:07:03 2008
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Exec=qnapi
+ Name=QNapi
+-Icon=/usr/share/icons/qnapi-48.png
++Icon=@PREFIX@/share/icons/qnapi.png
+ Type=Application
+ Categories=Application;Multimedia;AudioVideo;Utility;Qt;
+ Comment=Program do pobierania napisów do filmów
diff --git a/polish/qnapi/files/patch-doc-qnapi_download.desktop b/polish/qnapi/files/patch-doc-qnapi_download.desktop
new file mode 100644
index 000000000000..f2dfdbc98f4f
--- /dev/null
+++ b/polish/qnapi/files/patch-doc-qnapi_download.desktop
@@ -0,0 +1,17 @@
+--- doc/qnapi-download.desktop.orig Mon Apr 7 20:55:58 2008
++++ doc/qnapi-download.desktop Thu Apr 10 20:08:37 2008
+@@ -4,7 +4,7 @@
+ Actions=QNapiDownload;
+ Name=Pobierz napisy do filmu z QNapi
+ GenericName=Pobierz napisy do filmu z QNapi
+-Icon=/usr/share/icons/qnapi-48.png
++Icon=@PREFIX@/share/icons/qnapi.png
+ ServiceTypes=video/x-msvideo,video/x-ms-asf,video/mpeg,video/x-ms-wmv,video/mp4,video/quicktime,video/x-theora,video/x-matroska,video/3gpp,application/vnd.rn-realmedia,application/vnd.rn-realmedia-vbr
+ X-KDE-ServiceTypes=KonqPopupMenu/Plugin
+ Type=Service
+@@ -12,4 +12,4 @@
+ [Desktop Action QNapiDownload]
+ Name=Pobierz napisy do filmu z QNapi
+ Exec=qnapi %F
+-Icon=/usr/share/icons/qnapi-48.png
++Icon=@PREFIX@/share/icons/qnapi.png
diff --git a/polish/qnapi/files/patch-doc-qnapi_download.schemas b/polish/qnapi/files/patch-doc-qnapi_download.schemas
new file mode 100644
index 000000000000..0175e6b86e18
--- /dev/null
+++ b/polish/qnapi/files/patch-doc-qnapi_download.schemas
@@ -0,0 +1,11 @@
+--- doc/qnapi-download.schemas.orig Sat Feb 23 11:31:20 2008
++++ doc/qnapi-download.schemas Thu Apr 10 20:11:23 2008
+@@ -32,7 +32,7 @@
+ <short>The icon of the menu item</short>
+ <long>The icon of the menu item that will appear next to the label in the Nautilus popup menu when the selection matches the appearance conditions settings</long>
+ </locale>
+- <default>/usr/share/icons/qnapi.png</default>
++ <default>@PREFIX@/share/icons/qnapi.png</default>
+ </schema>
+ <schema>
+ <key>/schemas/apps/nautilus-actions/configurations/12e76756-c203-4a27-830f-af5a1527869e/path</key>
diff --git a/polish/qnapi/files/patch-qnapi.pro b/polish/qnapi/files/patch-qnapi.pro
new file mode 100644
index 000000000000..e7df63966f89
--- /dev/null
+++ b/polish/qnapi/files/patch-qnapi.pro
@@ -0,0 +1,48 @@
+--- qnapi.pro.orig Tue May 20 18:50:01 2008
++++ qnapi.pro Mon Jun 2 15:00:17 2008
+@@ -77,7 +77,7 @@
+ #QMAKE_BUNDLE_DATA += 7ZIP_BINARY
+ }
+ unix {
+- INSTALL_PREFIX = /usr
++ INSTALL_PREFIX = @PREFIX@
+ target.path = $${INSTALL_PREFIX}/bin
+ doc.path = $${INSTALL_PREFIX}/share/doc/$${TARGET}
+ doc.files = doc/ChangeLog \
+@@ -89,29 +89,27 @@
+ doc/COPYRIGHT \
+ doc/qnapi-download.desktop \
+ doc/qnapi-download.schemas
+- man.path = $${INSTALL_PREFIX}/share/man/man1
++ man.path = $${INSTALL_PREFIX}/man/man1
+ man.files = doc/$${TARGET}.1.gz
+- icons.path = /usr/share/icons
++ icons.path = $${INSTALL_PREFIX}/share/icons
+ icons.files = res/qnapi.png res/qnapi-48.png res/qnapi-128.png res/qnapi-512.png
+- desktop.path = /usr/share/applications
++ desktop.path = $${INSTALL_PREFIX}/share/applications
+ desktop.files = doc/$${TARGET}.desktop
+- dolphin_integration.path = /usr/share/apps/dolphin/servicemenus
++ dolphin_integration.path = $${INSTALL_PREFIX}/share/apps/dolphin/servicemenus
+ dolphin_integration.files = doc/$${TARGET}-download.desktop
+- d3lphin_integration.path = /usr/share/apps/d3lphin/servicemenus
++ d3lphin_integration.path = $${INSTALL_PREFIX}/share/apps/d3lphin/servicemenus
+ d3lphin_integration.files = doc/$${TARGET}-download.desktop
+- konqueror_integration.path = /usr/share/apps/konqueror/servicemenus
++ konqueror_integration.path = $${INSTALL_PREFIX}/share/apps/konqueror/servicemenus
+ konqueror_integration.files = doc/$${TARGET}-download.desktop
+ kde4_integration.path = /usr/lib/kde4/share/kde4/services/ServiceMenus
+ kde4_integration.files = doc/$${TARGET}-download.desktop
+ INSTALLS = target \
+- doc \
+ man \
+ icons \
+ desktop \
+ dolphin_integration \
+ d3lphin_integration \
+- konqueror_integration \
+- kde4_integration
++ konqueror_integration
+ }
+ win32 {
+ RC_FILE = win32/qnapi.rc
diff --git a/polish/qnapi/pkg-descr b/polish/qnapi/pkg-descr
new file mode 100644
index 000000000000..c0c994537552
--- /dev/null
+++ b/polish/qnapi/pkg-descr
@@ -0,0 +1 @@
+WWW: http://krzemin.iglu.cz/?page_id=29
diff --git a/polish/qnapi/pkg-plist b/polish/qnapi/pkg-plist
new file mode 100644
index 000000000000..4df3811daa84
--- /dev/null
+++ b/polish/qnapi/pkg-plist
@@ -0,0 +1,16 @@
+bin/qnapi
+share/icons/qnapi.png
+share/icons/qnapi-48.png
+share/icons/qnapi-128.png
+share/icons/qnapi-512.png
+share/applications/qnapi.desktop
+share/apps/dolphin/servicemenus/qnapi-download.desktop
+share/apps/d3lphin/servicemenus/qnapi-download.desktop
+share/apps/konqueror/servicemenus/qnapi-download.desktop
+@dirrmtry share/apps/d3lphin/servicemenus
+@dirrmtry share/apps/d3lphin
+@dirrmtry share/apps/konqueror/servicemenus
+@dirrmtry share/apps/konqueror
+@dirrmtry share/apps/dolphin/servicemenus
+@dirrmtry share/apps/dolphin
+@dirrmtry share/apps