Subject: Re: pkg/31533
To: None <reed@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: pkgsrc-bugs
Date: 10/11/2005 23:04:02
The following reply was made to PR pkg/31533; it has been noted by GNATS.
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/31533
Date: Wed, 12 Oct 2005 01:03:22 +0200
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, Oct 11, 2005 at 02:19:44PM -0700, Jeremy C. Reed wrote:
> I see that pkgsrc/sysutils/desktop-file-utils has a desktopdb.mk file
> which says:
>
> # This Makefile fragment is intended to be included by packages that install
> # desktop entries. It takes care of registering them in the global
> database.
>
> Have a look at that.
Attached patch fixes the issue for me. Please check carefully, I don't
know what I'm doing.
The .desktop file is stolen from Gentoo - kappfinder-3.4.1 package.
> I see some packages do include it, like gpdf, ggv, totem, epiphany, etc.
>
> But I am not sure what handles the running of update-desktop-database.
the desktopdb.mk file itself seems to do it somehow...
Pavel Cahyna
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="mime.diff"
Content-Transfer-Encoding: 8bit
? README.html
? files
? mime.diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/xpdf/Makefile,v
retrieving revision 1.39
diff -u -r1.39 Makefile
--- Makefile 7 Sep 2005 15:19:08 -0000 1.39
+++ Makefile 11 Oct 2005 22:50:26 -0000
@@ -16,6 +16,7 @@
USE_PKGINSTALL= yes
USE_LANGUAGES= c c++
+USE_DIRS+= xdg-1.1
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
@@ -39,14 +40,16 @@
${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
done
-# Used by supplemental packages.
post-install:
+ ${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${PREFIX}/share/applications
+# Used by supplemental packages.
${INSTALL_DATA_DIR} ${PREFIX}/share/xpdf
.include "../../fonts/t1lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
--- /dev/null 2005-10-12 00:50:26.000000000 +0200
+++ files/xpdf.desktop 2005-10-12 00:12:39.000000000 +0200
@@ -0,0 +1,90 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=X PDF
+Name[af]=X Pdf
+Name[bn]=à¦~Oà¦~Uà§~Mস পি-ডি-à¦~Oফ
+Name[de]=X-PDF
+Name[eo]=XPDF
+Name[es]=PDF para X
+Name[fr]=XPDF
+Name[hi]=à¤~Oà¤~Uà¥~Mस पà¥~@डà¥~@à¤~Oफ
+Name[ko]=Xì~Z© PDF
+Name[mn]=X-PDF
+MimeType=application/pdf
+GenericName=PDF Viewer
+GenericName[af]=Pdf Aansig
+GenericName[ar]=عارض Ù~EÙ~DÙ~Aات PDF
+GenericName[az]=PDF NümayiÅ~_çisi
+GenericName[bg]=Ð~_Ñ~@еглед на докÑ~CменÑ~Bи PDF
+GenericName[bn]=পি-ডি-à¦~Oফ পà§~Mরদরà§~Mশà¦~U
+GenericName[br]=Gweler PDF
+GenericName[bs]=Preglednik PDF dokumenata
+GenericName[ca]=Visor PDF
+GenericName[cs]=ProhlÞeÄ~M PDF souborů
+GenericName[cy]=Gwelydd PDF
+GenericName[da]=PDF-fremviser
+GenericName[de]=PDF-Betrachter
+GenericName[el]=Î Ï~AοβολÎαÏ~B PDF
+GenericName[eo]=PDF-rigardilo
+GenericName[es]=Visor de documentos PDF
+GenericName[et]=PDF failide vaatamine
+GenericName[eu]=PDF ikustailua
+GenericName[fa]=Ù~FÙ~EاÛ~Lشگر PDF
+GenericName[fi]=PDF-N�ytt�j�
+GenericName[fo]=PDF-vÃsari
+GenericName[fr]=Afficheur PDF
+GenericName[fy]=PDF-werjefteprogramma
+GenericName[ga]=Amharcán PDF
+GenericName[gl]=Visualizador de PDF
+GenericName[he]=×~^צ×~Y×~R ק×~Qצ×~Y PDF
+GenericName[hi]=पà¥~@डà¥~@à¤~Oफ पà¥~Mरदरà¥~Mशà¤~U
+GenericName[hr]=Preglednik PDF dokumenata
+GenericName[hu]=PDF-nézegetÅ~Q
+GenericName[id]=Viewer PDF
+GenericName[is]=PDF-sjá
+GenericName[it]=Visualizzatore PDF
+GenericName[ja]=PDFã~C~Sã~C¥ã~C¼ã~B¢
+GenericName[ko]=PDF 보기
+GenericName[lo]=ສະà»~Aàº~Tàº~Gàº~\ົàº~YPDF
+GenericName[lt]=PDF Žiūriklis
+GenericName[lv]=PDF SkatÄ«tÄ~Ajs
+GenericName[mk]=Ð~_Ñ~@егледÑ~CваÑ~G на PDF-даÑ~BоÑ~Bеки
+GenericName[mn]=PDF-ХаÑ~@агÑ~G
+GenericName[mt]=Werrej PDF
+GenericName[nb]=PDF-leser
+GenericName[nds]=Kieker för PDF-Dateien
+GenericName[nl]=PDF-weergaveprogramma
+GenericName[nn]=PDF-lesar
+GenericName[nso]=Molebeledi wa PDF
+GenericName[oc]=Visualisor PDF
+GenericName[pa]=PDF ਦਰਸ਼à¨~U
+GenericName[pl]=PrzeglÄ~Edarka plików PDF
+GenericName[pt]=Visualizador de PDFs
+GenericName[pt_BR]=Visualizador de arquivos PDF
+GenericName[ro]=Vizualizor de documente PDF
+GenericName[ru]=Ð~_Ñ~@огÑ~@амма пÑ~@оÑ~AмоÑ~BÑ~@а докÑ~CменÑ~Bов PDF
+GenericName[se]=PDF-logan
+GenericName[sk]=PrehliadaÄ~M PDF súborov
+GenericName[sl]=Pregledovalnik datotek PDF
+GenericName[sr]=PDF пÑ~@иказиваÑ~G
+GenericName[sr@Latn]=PDF prikazivaÄ~M
+GenericName[ss]=Sibuki se PDF
+GenericName[sv]=PDF-visare
+GenericName[ta]=PDF à®~Uாà®~_à¯~Mà®~Zி
+GenericName[tg]=Ð~]амоиÑ~HгаÑ~@и PDF
+GenericName[th]=à¸~Uัวà¹~Aสà¸~Tà¸~Gà¸~\ล PDF
+GenericName[tr]=PDF Görüntüleyici
+GenericName[uk]=Ð~_еÑ~@еглÑ~OдаÑ~G PDF
+GenericName[uz]=PDF кÑ~^Ñ~@Ñ~CвÑ~Gи
+GenericName[ven]=Tshivhoni tsha PDF
+GenericName[vi]=Trình xem PDF
+GenericName[wa]=HÃ¥yneu di documints PDF
+GenericName[zh_CN]=PDF æ~_¥ç~\~Kå~Y¨
+GenericName[zh_TW]=PDF 檢è¦~Vç¨~Kå¼~O
+GenericName[zu]=Umbukisi we-PDF
+Exec=xpdf
+Icon=gv
+Path=
+Type=Application
+Terminal=false
+X-KDE-StartupNotify=false
--xHFwDpU9dbj6ez1V--