I asked few times on irc but couldn't get straight answer, so the question is: Is there a point to install anything to /usr/share/mime if shared-mime-info is not present on the system? Let say package A install files to /usr/share/mime but do not depend on shared-mime-info therefore creates unneeded directory if shared-mime-info is not present. For examples look at medit and codeblocks ports. I attached possible solution. # Description: text editor # URL: http://mooedit.sourceforge.net/ # Maintainer: Bartlomiej Palmowski, maks1k at wp dot pl # Depends on: gtk name=medit version=0.9.3 release=1 source=(http://dl.sourceforge.net/sourceforge/mooedit/$name-$version.tar.bz2) build() { cd $name-$version ./configure \ --disable-nls \ --prefix=/usr \ --mandir=/usr/man \ --disable-generated-files make make DESTDIR=$PKG install rm -rf $PKG/usr/share/doc rm -rf $PKG/usr/include if ! prt-get listinst shared-mime-info >/dev/null 2>&1; then rm -rf $PKG/usr/share/mime fi }
Hello, Bartek. On Sat, 07 Jun 2008 12:58:32 +0200 Bartek Palmowski <wszystkie.fajne.loginy.zajete@gmail.com> wrote:
I asked few times on irc but couldn't get straight answer, so the question is: Is there a point to install anything to /usr/share/mime if shared-mime-info is not present on the system? Let say package A install files to /usr/share/mime but do not depend on shared-mime-info therefore creates unneeded directory if shared-mime-info is not present. For examples look at medit and codeblocks ports. I attached possible solution.
As it is now possible to list unwanted files in /etc/pkgmk.conf (see pkgadd(8)) installing mime stuff or info pages by default is not that bad idea. I am not sure if this was discussed before and I'd like to know if we _should_ install them? Any comments from the system team? IMHO, checking if something is installed inside Pkgfile does not look like a 'best practice' we should provide. -- Mikhail Kolesnik ICQ: 260259143 IRC: mike_k at freenode/#crux, rusnet/#yalta
participants (2)
-
Bartek Palmowski
-
Mikhail Kolesnik