diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2010-02-18 01:06:53 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2010-02-18 01:06:53 +0800 |
commit | 66e9552c9b46b4866fce79de79e29b296dcdfa9c (patch) | |
tree | 0ec158bd3dada6df3edbd6b592fc797431c0e739 /editors | |
parent | d12bd94ddd970b48fbc2beeb69aeb27047b79bfa (diff) | |
download | freebsd-ports-gnome-66e9552c9b46b4866fce79de79e29b296dcdfa9c.tar.gz freebsd-ports-gnome-66e9552c9b46b4866fce79de79e29b296dcdfa9c.tar.zst freebsd-ports-gnome-66e9552c9b46b4866fce79de79e29b296dcdfa9c.zip |
- Fix paths to icon and executable in .desktop file
- Fix LOCALBASE/PREFIX misuse
PR: 143296
Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com>
Approved by: Alexander Best <alexbestms@wwu.de> (maintainer)
Feature safe: yes
Diffstat (limited to 'editors')
-rw-r--r-- | editors/py-room/Makefile | 4 | ||||
-rw-r--r-- | editors/py-room/files/patch-PyRoom-gui.py | 2 | ||||
-rw-r--r-- | editors/py-room/files/patch-PyRoom-preferences.py | 2 | ||||
-rw-r--r-- | editors/py-room/files/patch-pyroom.desktop | 14 | ||||
-rw-r--r-- | editors/py-room/files/patch-setup.py | 6 |
5 files changed, 21 insertions, 7 deletions
diff --git a/editors/py-room/Makefile b/editors/py-room/Makefile index 700175ace170..cb2593bdc8e3 100644 --- a/editors/py-room/Makefile +++ b/editors/py-room/Makefile @@ -27,8 +27,8 @@ PYDISTUTILS_PKGNAME= PyRoom post-patch: @${REINPLACE_CMD} -e \ - 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/setup.py ${WRKSRC}/PyRoom/preferences.py \ - ${WRKSRC}/PyRoom/gui.py + ${WRKSRC}/PyRoom/gui.py ${WRKSRC}/pyroom.desktop .include <bsd.port.mk> diff --git a/editors/py-room/files/patch-PyRoom-gui.py b/editors/py-room/files/patch-PyRoom-gui.py index 641a84a69041..fa252e31ec3f 100644 --- a/editors/py-room/files/patch-PyRoom-gui.py +++ b/editors/py-room/files/patch-PyRoom-gui.py @@ -5,7 +5,7 @@ order of preference is homedir, global dir, source dir (if available)""" local_directory = os.path.join(data_home, 'pyroom', 'themes') - global_directory = '/usr/share/pyroom/themes' # FIXME: platform -+ global_directory = '%%LOCALBASE%%/share/pyroom/themes' # FIXME: platform ++ global_directory = '%%PREFIX%%/share/pyroom/themes' # FIXME: platform # in case PyRoom is run without installation fallback_directory = os.path.join( os.path.dirname(os.path.abspath(__file__)), diff --git a/editors/py-room/files/patch-PyRoom-preferences.py b/editors/py-room/files/patch-PyRoom-preferences.py index c7bb321cabed..d41da08f9f12 100644 --- a/editors/py-room/files/patch-PyRoom-preferences.py +++ b/editors/py-room/files/patch-PyRoom-preferences.py @@ -5,7 +5,7 @@ self.data_dir = os.path.join(data_home, 'pyroom') self.themes_dir = os.path.join(self.data_dir, 'themes') - self.global_themes_dir = '/usr/share/pyroom/themes' -+ self.global_themes_dir = '%%LOCALBASE%%/share/pyroom/themes' ++ self.global_themes_dir = '%%PREFIX%%/share/pyroom/themes' # if we are not using a global installation, # take the themes directly from sources if not os.path.isdir(self.global_themes_dir) : diff --git a/editors/py-room/files/patch-pyroom.desktop b/editors/py-room/files/patch-pyroom.desktop new file mode 100644 index 000000000000..9e4f13e56735 --- /dev/null +++ b/editors/py-room/files/patch-pyroom.desktop @@ -0,0 +1,14 @@ +--- pyroom.desktop 2009-04-06 10:32:56.000000000 +0200 ++++ pyroom.desktop 2009-04-06 10:32:56.000000000 +0200 +@@ -1,9 +1,9 @@ + [Desktop Entry] + Version=1.0 + Name=PyRoom +-Icon=/usr/share/pyroom/pyroom.png ++Icon=%%PREFIX%%/share/pyroom/pyroom.png + Comment=Distraction free full-screen text editor +-Exec=/usr/bin/pyroom %F ++Exec=%%PREFIX%%/bin/pyroom %F + Terminal=false + Type=Application + Categories=GNOME;GTK;Office; diff --git a/editors/py-room/files/patch-setup.py b/editors/py-room/files/patch-setup.py index 93d4646bd2f0..c0b23047f440 100644 --- a/editors/py-room/files/patch-setup.py +++ b/editors/py-room/files/patch-setup.py @@ -7,9 +7,9 @@ - ('/usr/share/pyroom/themes', glob.glob('themes/*.theme')), - ('/usr/share/pyroom', ['pyroom.png']), - ('/usr/share/applications', ['pyroom.desktop']) -+ ('%%LOCALBASE%%/share/pyroom/themes', glob.glob('themes/*.theme')), -+ ('%%LOCALBASE%%/share/pyroom', ['pyroom.png']), -+ ('%%LOCALBASE%%/share/applications', ['pyroom.desktop']) ++ ('%%PREFIX%%/share/pyroom/themes', glob.glob('themes/*.theme')), ++ ('%%PREFIX%%/share/pyroom', ['pyroom.png']), ++ ('%%PREFIX%%/share/applications', ['pyroom.desktop']) ], scripts=['pyroom',], cmdclass={'install_data': InstallData}, |