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--