On Wed, Nov 25, 2009 at 12:07:21AM +0100, Thomas Perl wrote:
> > First man pages for ports under OpenBSD go under
> > /usr/local/man instead of the /usr/local/share/man.
> > So I patched setup.py and Makefile.
>
> If you can provide a patch that will not change the default behaviour,
> but will allow you to easily change this by using make/environment
> variables, please feel free to send me the patch, so I can apply it.
We don't use the Makefile to uninstall AFAIK, so I won't patch it.
As far setup.py goes (attached as well):
--- setup.py.orig Wed Nov 25 19:36:02 2009
+++ setup.py Wed Nov 25 19:39:04 2009
@@ -24,6 +24,9 @@ import re
import sys
from distutils.core import setup
+# get the OS that we're running under
+OS = os.uname()[0]
+
# build targets
(DEFAULT, MAEMO) = range(2)
@@ -70,8 +73,16 @@ inst_icons_22 = [ 'data/icons/22/gpodder.png' ]
inst_icons_16 = [ 'data/icons/16/gpodder.png' ]
inst_icons_svg = [ 'data/gpodder.svg' ]
-data_files = [
+if OS == 'OpenBSD':
+ data_files = [
+ ('man/man1', inst_manpages),
+ ]
+else:
+ data_files = [
('share/man/man1', inst_manpages),
+ ]
+
+data_files += [
('share/gpodder/ui', inst_share_ui),
('share/pixmaps', inst_icons),
('share/gpodder', inst_share_gpodder),
@@ -128,4 +139,3 @@ setup(
scripts = glob.glob('bin/*') + additional_scripts,
data_files = data_files + translation_files
)
-
--rodolfo
$OpenBSD$
--- setup.py.orig Wed Nov 25 19:36:02 2009
+++ setup.py Wed Nov 25 19:39:04 2009
@@ -24,6 +24,9 @@ import re
import sys
from distutils.core import setup
+# get the OS that we're running under
+OS = os.uname()[0]
+
# build targets
(DEFAULT, MAEMO) = range(2)
@@ -70,8 +73,16 @@ inst_icons_22 = [ 'data/icons/22/gpodder.png' ]
inst_icons_16 = [ 'data/icons/16/gpodder.png' ]
inst_icons_svg = [ 'data/gpodder.svg' ]
-data_files = [
+if OS == 'OpenBSD':
+ data_files = [
+ ('man/man1', inst_manpages),
+ ]
+else:
+ data_files = [
('share/man/man1', inst_manpages),
+ ]
+
+data_files += [
('share/gpodder/ui', inst_share_ui),
('share/pixmaps', inst_icons),
('share/gpodder', inst_share_gpodder),
@@ -128,4 +139,3 @@ setup(
scripts = glob.glob('bin/*') + additional_scripts,
data_files = data_files + translation_files
)
-
_______________________________________________
gpodder-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-devel