Date: Sat, 26 Jan 2013 05:49:33 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/175586: print/kover: Update to version 6 Message-ID: <20130126054933.fc55d8d025a44e3b13bd3aea@yahoo.com> Resent-Message-ID: <201301252110.r0PLA6W4075100@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175586 >Category: ports >Synopsis: print/kover: Update to version 6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 25 21:10:06 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p11 i386 >Organization: >Environment: >Description: - Update to version 6 New file: files/patch-cddb_fill.cc >How-To-Repeat: >Fix: diff -urN /usr/ports/print/kover/Makefile print/kover/Makefile --- /usr/ports/print/kover/Makefile 2012-11-08 09:24:28.000000000 +0900 +++ print/kover/Makefile 2013-01-23 22:37:17.000000000 +0900 @@ -1,12 +1,8 @@ -# New ports collection makefile for: kover -# Date created: Mon Dec 29 05:07:17 CET 2003 -# Whom: Markus Brueffer <brueffer@phoenix-systems.de> -# +# Created by: Markus Brueffer <brueffer@phoenix-systems.de> # $FreeBSD: head/print/kover/Makefile 300897 2012-07-14 14:29:18Z beat $ PORTNAME= kover -PORTVERSION= 4 -PORTREVISION= 1 +PORTVERSION= 6 CATEGORIES= print kde MASTER_SITES= http://lisas.de/kover/ @@ -15,17 +11,25 @@ LICENSE= GPLv2 -LIB_DEPENDS= cddb.4:${PORTSDIR}/audio/libcddb \ - cdio.13:${PORTSDIR}/sysutils/libcdio +LIB_DEPENDS= cddb:${PORTSDIR}/audio/libcddb \ + cdio:${PORTSDIR}/sysutils/libcdio USE_BZIP2= yes USE_KDE4= automoc4 kdehier kdeprefix kdelibs USE_QT4= corelib dbus gui network svg xml \ qmake_build uic_build rcc_build USE_PERL5_BUILD=yes +USE_GETTEXT= yes USE_CMAKE= yes MAKE_JOBS_SAFE= yes MAN1= kover.1 +post-patch: + @${REINPLACE_CMD} -e \ + '/libcdio/s|>=.*)|)|' ${WRKSRC}/src/CMakeLists.txt + +post-install: + -update-mime-database ${PREFIX}/share/mime + .include <bsd.port.mk> diff -urN /usr/ports/print/kover/distinfo print/kover/distinfo --- /usr/ports/print/kover/distinfo 2012-11-08 09:24:28.000000000 +0900 +++ print/kover/distinfo 2013-01-23 22:27:17.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (kover-4.tar.bz2) = dd73d80eca21a23cc4206b9cbe3bf19071bf02e3dbbb0b808b719e84309c5a6f -SIZE (kover-4.tar.bz2) = 87141 +SHA256 (kover-6.tar.bz2) = 87494299d5dd7a51bbf3a1739f372da680744f14271c43d8495eca15f1f2480a +SIZE (kover-6.tar.bz2) = 87898 diff -urN /usr/ports/print/kover/files/patch-cddb_fill.cc print/kover/files/patch-cddb_fill.cc --- /usr/ports/print/kover/files/patch-cddb_fill.cc 1970-01-01 09:00:00.000000000 +0900 +++ print/kover/files/patch-cddb_fill.cc 2013-01-23 22:35:11.000000000 +0900 @@ -0,0 +1,52 @@ +--- src/cddb_fill.cc.orig ++++ src/cddb_fill.cc +@@ -30,6 +30,9 @@ + #include <string> + #include <algorithm> + #include <cdio/cdio.h> ++#if LIBCDIO_VERSION_NUM < 90 ++#include <cdio/cdda.h> ++#endif + #include <cdio/cdtext.h> + + using namespace std; +@@ -93,17 +96,39 @@ + kprintf("device %p\n", cdio); + + /* get disc artist and title */ ++#if LIBCDIO_VERSION_NUM < 90 ++ cdtext_t *cdtext = cdio_get_cdtext(cdio, 0); ++#else + cdtext_t *cdtext = cdio_get_cdtext(cdio); ++#endif + if (cdtext) { ++#if LIBCDIO_VERSION_NUM < 90 ++ if (cdtext->field[CDTEXT_PERFORMER]) ++ cd_info.artist = cdtext->field[CDTEXT_PERFORMER]; ++ if (cdtext->field[CDTEXT_TITLE]) ++ cd_info.cdname = cdtext->field[CDTEXT_TITLE]; ++ if (cdtext->field[CDTEXT_DISCID]) ++ cd_info.cddb_id = ++ strtoul(cdtext->field[CDTEXT_DISCID], NULL, 16); ++#else + cd_info.artist = cdtext_get(cdtext, CDTEXT_FIELD_PERFORMER, 0); + cd_info.cdname = cdtext_get(cdtext, CDTEXT_FIELD_TITLE, 0); + cd_info.cddb_id = strtoul(cdtext_get(cdtext, CDTEXT_FIELD_DISCID, 0), NULL, 16); ++#endif + } + + for (int i = 1; i <= cd_info.ntracks; i++) { ++#if LIBCDIO_VERSION_NUM < 90 ++ cdtext_t *cdtext = cdio_get_cdtext(cdio, i); ++#endif + trackinfo *blub = new trackinfo(); + blub->track = i; ++#if LIBCDIO_VERSION_NUM < 90 ++ if (cdtext->field[CDTEXT_TITLE]) ++ blub->name = cdtext->field[CDTEXT_TITLE]; ++#else + blub->name = cdtext_get(cdtext, CDTEXT_FIELD_TITLE, i); ++#endif + cd_info.tracks.push_back(blub); + + } diff -urN /usr/ports/print/kover/pkg-plist print/kover/pkg-plist --- /usr/ports/print/kover/pkg-plist 2012-11-08 09:24:28.000000000 +0900 +++ print/kover/pkg-plist 2013-01-23 21:30:46.000000000 +0900 @@ -13,6 +13,12 @@ share/icons/kover_one_page.png share/icons/locolor/16x16/apps/kover.png share/icons/locolor/32x32/apps/kover.png +share/locale/de/LC_MESSAGES/kover.mo +share/locale/es/LC_MESSAGES/kover.mo +share/locale/fr/LC_MESSAGES/kover.mo +share/locale/it/LC_MESSAGES/kover.mo +share/locale/nb/LC_MESSAGES/kover.mo +share/locale/pl/LC_MESSAGES/kover.mo share/mime/packages/kover.xml @dirrmtry share/icons/locolor/32x32/apps @dirrmtry share/icons/locolor/32x32 @@ -20,3 +26,5 @@ @dirrmtry share/icons/locolor/16x16 @dirrmtry share/icons/locolor @dirrm share/apps/kover +@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130126054933.fc55d8d025a44e3b13bd3aea>