- Update to version 1.6-rc2

- Add missing deps
- Don't install 3 copies of licensing terms
- Replace patches with REINPLACE_CMD
- Add port description, new homepage - old one seems dead
This commit is contained in:
Pawel Pekala 2012-12-21 18:01:16 +00:00
parent c391b20b91
commit 6e57a40b90
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309368
7 changed files with 28 additions and 78 deletions

View file

@ -1,24 +1,30 @@
# New ports collection makefile for: qnapi
# Date created: 2008-02-15
# Whom: Pawel Pekala <c0rn@o2.pl>
#
# Created by: Pawel Pekala <c0rn@o2.pl>
# $FreeBSD$
#
PORTNAME= qnapi
PORTVERSION= 0.1.5
PORTREVISION= 4
PORTVERSION= 0.1.6.r2
CATEGORIES= polish multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME}/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-rc2
MAINTAINER= pawel@FreeBSD.org
COMMENT= Unofficial napiprojekt.pl qt4 client
COMMENT= Qt4 based subtitle downloader
LICENSE= GPLv2
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
pcre:${PORTSDIR}/devel/pcre \
png15:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \
expat:${PORTSDIR}/textproc/expat2 \
xcb:${PORTSDIR}/x11/libxcb \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= 7z:${PORTSDIR}/archivers/p7zip
USE_QT4= corelib gui network qmake_build moc_build uic_build rcc_build
USE_ICONV= yes
USE_GETTEXT= yes
USE_XORG= ice sm x11 xau xdmcp xext xrender
USE_QT4= corelib gui network xml qmake_build moc_build uic_build rcc_build
USE_KDE4= kdehier
QMAKE_ARGS= PREFIX=${PREFIX} KDE4_PREFIX=${KDE4_PREFIX}
MAKE_JOBS_SAFE= yes
@ -26,16 +32,15 @@ INSTALLS_ICONS= yes
MAN1= qnapi.1
MANCOMPRESSED= yes
PORTDOCS= ChangeLog changelog.gz README README.pl LICENSE \
LICENSE.pl COPYRIGHT
PORTDOCS= ChangeLog README.pl COPYRIGHT
.include <bsd.port.options.mk>
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' \
doc/qnapi.desktop doc/qnapi-download.desktop
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|@LOCALBASE@|${LOCALBASE}|g' \
src/napi.h
@${REINPLACE_CMD} 's|/usr/share/icons/||g' \
${WRKSRC}/doc/qnapi.desktop \
${WRKSRC}/doc/qnapi-download.desktop \
${WRKSRC}/doc/qnapi-download.schemas
pre-build:
@cd ${WRKSRC} && ${QMAKE} -spec ${QMAKESPEC} ${QMAKEFLAGS} ${QMAKE_ARGS}

View file

@ -1,2 +1,2 @@
SHA256 (qnapi-0.1.5.tar.gz) = 88ef9e4c8a2e830b0b9b231888e0012d10ac5ab3b8df7a18d09f42ee7de7fa5d
SIZE (qnapi-0.1.5.tar.gz) = 172405
SHA256 (qnapi-0.1.6-rc2.tar.gz) = a2ae2d0b5d800565493c8840f5f584d480daaee1f01742689d927fdf68c5150a
SIZE (qnapi-0.1.6-rc2.tar.gz) = 211567

View file

@ -1,11 +0,0 @@
--- 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=AudioVideo;
Comment=Program do pobierania napisów do filmów

View file

@ -1,17 +0,0 @@
--- 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

View file

@ -1,11 +0,0 @@
--- 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>

View file

@ -1,20 +0,0 @@
--- src/napi.h.orig 2010-11-27 12:39:09.000000000 +0100
+++ src/napi.h 2010-11-27 12:40:06.000000000 +0100
@@ -67,7 +67,7 @@
bool napiMatchSubtitles(const QString & md5sum, const QString & zip_file, const QString & movie_file,
bool noBackup = false, const QString & tmp_path = "/tmp",
- const QString & p7zip_path = "/usr/bin/7z");
+ const QString & p7zip_path = "@LOCALBASE@/bin/7z");
bool napiCheckUser(const QString & nick, const QString & pass);
@@ -76,7 +76,7 @@
const QString & pass, bool correct = false,
const QString & comment = "",
const QString & tmp_path = "/tmp",
- const QString & p7zip_path = "/usr/bin/7z");
+ const QString & p7zip_path = "@LOCALBASE@/bin/7z");
napiReportResult napiReportBad(const QString & movie_file, const QString & language,
const QString & nick, const QString & pass, const QString & comment,

View file

@ -1 +1,5 @@
WWW: http://krzemin.iglu.cz/?page_id=29
Free, Qt4-based application designed for automatically downloading and
matching subtitles for your movie files.
It uses NapiProjekt and OpenSubtitles databases.
WWW: http://sourceforge.net/projects/qnapi/