1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/audio/coverhunter/files/patch-bin::coverhunter
Edwin Groothuis fbcc2f642a New port: audio/coverhunter, a program fetching the covers of your digital music albums
CoverHunter will scan your digital music albums and try to
	get the cover image for each one. After that, if more than
	one cover was found, you can choose wich one will be set
	as the cover for that album. These covers may be used by
	XMMS, KDE, GNOME, etc.

PR:		ports/69053
Submitted by:	Jean-Yves Lefort <jylefort@brutele.be>
2004-10-13 23:41:25 +00:00

36 lines
904 B
Plaintext

--- bin/coverhunter.orig Wed Jul 14 14:57:49 2004
+++ bin/coverhunter Wed Jul 14 15:01:58 2004
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! @PYTHON_CMD@
# Copyright (c) 2003,2004 Guilherme Salgado
# All rights reserved.
#
@@ -22,15 +22,8 @@
#
import os, sys, tempfile, threading, traceback, urllib2
-if os.path.exists('CVS'):
- # developer mode, coverhunter hasn't been installed
- prefix = '.'
- DEBUG = True
-else:
- base_dir = os.path.split(os.path.dirname(sys.argv[0]))[0]
- prefix = os.path.join(base_dir, 'lib', 'coverhunter')
- DEBUG = False
-sys.path.append(os.path.join(prefix, 'lib'))
+DEBUG = False
+sys.path.append('@PKGLIBDIR@')
import Image
import pygtk ; pygtk.require('2.0')
@@ -440,7 +433,7 @@
def find_datafile(filename):
- return os.path.join(prefix, 'data', filename)
+ return os.path.join('@DATADIR@', filename)
if __name__ == "__main__":