bitpim-1.0.6-gentoo.patch 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. diff -Nru bitpim-1.0.6.orig/src/common.py bitpim-1.0.6/src/common.py
  2. --- bitpim-1.0.6.orig/src/common.py 2007-08-29 00:19:51.000000000 +0000
  3. +++ bitpim-1.0.6/src/common.py 2008-11-02 13:50:39.000000000 +0000
  4. @@ -860,7 +860,7 @@
  5. # windows running from exe, return as is
  6. return os.path.abspath(os.path.dirname(sys.executable))
  7. # running from src, up one
  8. - return os.path.split(os.path.abspath(os.path.dirname(sys.argv[0])))[0]
  9. + return os.path.abspath(os.path.dirname(sys.argv[0]))
  10. if sys.platform=='win32':
  11. # From Tim Golden's Win32 How Do I ...?
  12. diff -Nru bitpim-1.0.6.orig/src/conversions.py bitpim-1.0.6/src/conversions.py
  13. --- bitpim-1.0.6.orig/src/conversions.py 2007-08-29 00:19:51.000000000 +0000
  14. +++ bitpim-1.0.6/src/conversions.py 2008-11-02 13:50:39.000000000 +0000
  15. @@ -23,11 +23,11 @@
  16. class ConversionFailed(Exception): pass
  17. -helperdir=os.path.join(common.get_main_dir(), "helpers")
  18. +helperdir="/usr/bin"
  19. osext={'win32': '.exe',
  20. 'darwin': '.mbin',
  21. - 'linux2': '.lbin'} \
  22. + 'linux2': ''} \
  23. [sys.platform]
  24. # This shortname crap is needed because Windows programs (including ffmpeg)
  25. @@ -128,14 +128,14 @@
  26. p=sys.path[0]
  27. if os.path.isfile(p):
  28. p=os.path.dirname(p)
  29. - helpersdirectory=os.path.abspath(os.path.join(p, 'helpers'))
  30. + helpersdirectory="/usr/bin"
  31. print "Helper Directory: "+helpersdirectory
  32. if sys.platform=='win32':
  33. osext=".exe"
  34. if sys.platform=='darwin':
  35. osext=".mbin"
  36. if sys.platform=='linux2':
  37. - osext=".lbin"
  38. + osext=""
  39. pngtopnmbin=gethelperbinary('pngtopnm')
  40. ppmquantbin=gethelperbinary('ppmquant')
  41. diff -Nru bitpim-1.0.6.orig/src/importexport.py bitpim-1.0.6/src/importexport.py
  42. --- bitpim-1.0.6.orig/src/importexport.py 2007-08-27 04:58:33.000000000 +0000
  43. +++ bitpim-1.0.6/src/importexport.py 2008-11-02 13:50:39.000000000 +0000
  44. @@ -23,7 +23,7 @@
  45. import wx.html
  46. # Others
  47. -from thirdparty import DSV
  48. +import DSV
  49. # My modules
  50. import common
  51. diff -Nru bitpim-1.0.6.orig/src/native/av/bmp2avi/Makefile bitpim-1.0.6/src/native/av/bmp2avi/Makefile
  52. --- bitpim-1.0.6.orig/src/native/av/bmp2avi/Makefile 2006-05-05 07:10:08.000000000 +0000
  53. +++ bitpim-1.0.6/src/native/av/bmp2avi/Makefile 2008-11-02 13:50:39.000000000 +0000
  54. @@ -13,6 +13,6 @@
  55. SRC=avi_file.cxx bmp_file.cxx b2a.cxx
  56. -bmp2avi.lbin bmp2avi.mbin bmp2avi.exe: $(SRC)
  57. +bmp2avi bmp2avi.mbin bmp2avi.exe: $(SRC)
  58. $(CXX) $(EXTRADEFINES) -O2 -o $@ $(SRC)
  59. diff -Nru bitpim-1.0.6.orig/src/native/usb/build.sh bitpim-1.0.6/src/native/usb/build.sh
  60. --- bitpim-1.0.6.orig/src/native/usb/build.sh 2007-08-10 21:53:59.000000000 +0000
  61. +++ bitpim-1.0.6/src/native/usb/build.sh 2008-11-02 13:50:39.000000000 +0000
  62. @@ -4,4 +4,4 @@
  63. swig -python -I/usr/include libusb.i
  64. gcc -fPIC -Wall -fno-strict-aliasing -O2 -g -shared -I $INCLUDEDIR -o _libusb.so libusb_wrap.c -lusb
  65. -strip _libusb.so
  66. +#strip _libusb.so
  67. diff -Nru bitpim-1.0.6.orig/src/phones/com_samsung.py bitpim-1.0.6/src/phones/com_samsung.py
  68. --- bitpim-1.0.6.orig/src/phones/com_samsung.py 2007-08-17 21:11:59.000000000 +0000
  69. +++ bitpim-1.0.6/src/phones/com_samsung.py 2008-11-02 13:50:39.000000000 +0000
  70. @@ -16,7 +16,7 @@
  71. import time
  72. # site-packages
  73. -from thirdparty import DSV
  74. +import DSV
  75. # BitPim modules
  76. import bpcalendar