Guest User

google-gdata-sharp

a guest
Aug 1st, 2010
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.27 KB | None | 0 0
  1. #### Amended PKGBUILD ################################################################################################################################################
  2. #Contributor: neuromante <lorenzo.nizzi.grifi[at]gmail.com>
  3. pkgname=google-gdata-sharp
  4. pkgver=1.6.0.0
  5. pkgrel=1
  6. pkgdesc="NET library for the Google Data API "
  7. arch=('i686' 'x86_64')
  8. url="http://code.google.com/p/google-gdata/"
  9. license=("APACHE")
  10. depends=('mono')
  11. makedepends=('mono')
  12. options=('!libtool')
  13. provides=('libgoogle-data-mono')
  14. source=(http://google-gdata.googlecode.com/files/libgoogle-data-mono-1.6.0.0.tar.gz)
  15. md5sums=('5056c2f594e4d0421a2ff54778c52417')
  16.  
  17. build() {
  18. cd "$srcdir/libgoogle-data-mono-$pkgver"
  19. #patch -p0 < /home/sweetth/google-gdata-sharp/path.patch
  20. patch -p1 -i /home/sweetth/google-gdata-sharp/path.patch
  21. patch -p1 -i /home/sweetth/google-gdata-sharp/fix.patch
  22. make
  23. make DESTDIR=$pkgdir install || return 1
  24. }
  25. #### PATH.PATCH ####
  26. --- libgoogle-data-mono-1.6.0.0/Makefile 2009-02-11 10:34:10.000000000 +0100
  27. +++ libgoogle-data-mono-1.6.0.0.new/Makefile 2010-03-09 13:46:59.000000000 +0100
  28. @@ -4,7 +4,7 @@ CSC=gmcs
  29. DEFINES=/d:TRACE
  30.  
  31. VERSION=$(shell egrep AssemblyVersion version/AssemblyVersion.cs | egrep -o \([[:digit:]]\.\)+[[:digit:]]+)
  32. -PREFIX=/usr/local
  33. +PREFIX=/usr
  34.  
  35. CORELIBS=\
  36. Google.GData.Client.dll \
  37. #### FIX.PATCH #######################################################################################################################################################
  38. --- libgoogle-data-mono-1.6.0.0/Makefile 2009-02-11 10:34:10.000000000 +0100
  39. +++ libgoogle-data-mono-1.6.0.0.new/Makefile 2010-03-09 13:46:59.000000000 +0100
  40. @@ -4,7 +4,7 @@ CSC=gmcs
  41. DEFINES=/d:TRACE
  42.  
  43. VERSION=$(shell egrep AssemblyVersion version/AssemblyVersion.cs | egrep -o \([[:digit:]]\.\)+[[:digit:]]+)
  44. -PREFIX=/usr/local
  45. +PREFIX=/usr
  46.  
  47. CORELIBS=\
  48. Google.GData.Client.dll \
  49. #### MAKEFILE.REJ ####################################################################################################################################################
  50. --- Makefile 2009-02-11 10:34:10.000000000 +0100
  51. +++ Makefile 2010-03-09 13:46:59.000000000 +0100
  52. @@ -4,7 +4,7 @@
  53. DEFINES=/d:TRACE
  54.  
  55. VERSION=$(shell egrep AssemblyVersion version/AssemblyVersion.cs | egrep -o \([[:digit:]]\.\)+[[:digit:]]+)
  56. -PREFIX=/usr/local
  57. +PREFIX=/usr
  58.  
  59. CORELIBS=\
  60. Google.GData.Client.dll \
  61. #### MAKEFILE ########################################################################################################################################################
  62. CSC1=mcs
  63.  
  64. CSC=gmcs
  65.  
  66.  
  67.  
  68. DEFINES=/d:TRACE
  69.  
  70.  
  71.  
  72. VERSION=$(shell egrep AssemblyVersion version/AssemblyVersion.cs | egrep -o \([[:digit:]]\.\)+[[:digit:]]+)
  73.  
  74. PREFIX=/usr/local
  75.  
  76. PKGCONFIGDIR = $(PREFIX)/lib/pkgconfig
  77.  
  78.  
  79.  
  80. CORELIBS=\
  81.  
  82. Google.GData.Client.dll \
  83.  
  84. Google.GData.Extensions.dll
  85.  
  86.  
  87.  
  88. ACLLIBS=\
  89.  
  90. Google.GData.Client.dll \
  91.  
  92. Google.GData.Extensions.dll \
  93.  
  94. Google.GData.AccessControl.dll
  95.  
  96.  
  97.  
  98.  
  99.  
  100. ALLLIBS = \
  101.  
  102. Google.GData.Calendar.dll \
  103.  
  104. Google.GData.Client.dll \
  105.  
  106. Google.GData.CodeSearch.dll \
  107.  
  108. Google.GData.Extensions.dll \
  109.  
  110. Google.GData.GoogleBase.dll \
  111.  
  112. Google.GData.Spreadsheets.dll \
  113.  
  114. Google.GData.Apps.dll \
  115.  
  116. Google.GData.Photos.dll \
  117.  
  118. Google.GData.Documents.dll \
  119.  
  120. Google.GData.AccessControl.dll \
  121.  
  122. Google.GData.Contacts.dll \
  123.  
  124. Google.GData.YouTube.dll \
  125.  
  126. Google.GData.Health.dll \
  127.  
  128. Google.GData.Blogger.dll \
  129.  
  130. Google.GData.Analytics.dll \
  131.  
  132.  
  133.  
  134. UNINSTALLLIBS = $(basename $(ALLLIBS))
  135.  
  136.  
  137.  
  138. FRAMEWORK_REFS = -r:System.dll -r:System.Xml.dll -r:System.Web.dll -r:System.Configuration.dll
  139.  
  140.  
  141.  
  142. PKGCONFIG_FILES = $(patsubst %.pc.in,%.pc,$(wildcard misc/*.pc.in))
  143.  
  144.  
  145.  
  146. COREREFS = $(addprefix -r:,$(CORELIBS)) $(FRAMEWORK_REFS)
  147.  
  148. ALLREFS = $(addprefix -r:,$(ALLLIBS)) $(FRAMEWORK_REFS)
  149.  
  150. ACLREFS = $(addprefix -r:,$(ACLLIBS)) $(FRAMEWORK_REFS)
  151.  
  152.  
  153.  
  154.  
  155.  
  156. samples = \
  157.  
  158. gbase_queryexample.exe \
  159.  
  160. gbase_customertool.exe \
  161.  
  162. execrequest.exe \
  163.  
  164. gapps_appsdemo.exe \
  165.  
  166. gapps_migration_sample.exe \
  167.  
  168. gblogger_demo.exe \
  169.  
  170. gcal_demo.exe \
  171.  
  172. gspreadsheet_demo.exe \
  173.  
  174. PhotoTool.exe \
  175.  
  176. HealthTool.exe \
  177.  
  178.  
  179.  
  180. all: $(ALLLIBS) tests $(samples) $(PKGCONFIG_FILES)
  181.  
  182.  
  183.  
  184. core_sources = $(wildcard src/core/*.cs) $(wildcard version/*.cs)
  185.  
  186. extensions_sources = $(wildcard src/extensions/*.cs) $(wildcard version/*.cs)
  187.  
  188. gbase_sources = $(wildcard src/gbase/*.cs) $(wildcard version/*.cs)
  189.  
  190. gcodesearch_sources = $(wildcard src/gcodesearch/*.cs) $(wildcard version/*.cs)
  191.  
  192. gspreadsheet_sources = $(wildcard src/gspreadsheet/*.cs) $(wildcard version/*.cs)
  193.  
  194. gcalendar_sources = $(wildcard src/gcalendar/*.cs) $(wildcard version/*.cs)
  195.  
  196. gacl_sources = $(wildcard src/gacl/*.cs) $(wildcard version/*.cs)
  197.  
  198. gapps_sources = $(wildcard src/gapps/*.cs) $(wildcard version/*.cs)
  199.  
  200. gphotos_sources = $(wildcard src/gphotos/*.cs) $(wildcard version/*.cs)
  201.  
  202. gdocuments_sources = $(wildcard src/documents3/*.cs) $(wildcard version/*.cs)
  203.  
  204. gcontact_sources = $(wildcard src/gcontacts/*.cs) $(wildcard version/*.cs)
  205.  
  206. youtube_sources = $(wildcard src/youtube/*.cs) $(wildcard version/*.cs)
  207.  
  208. health_sources = $(wildcard src/ghealth/*.cs) $(wildcard version/*.cs)
  209.  
  210. blogger_sources = $(wildcard src/blogger/*.cs) $(wildcard version/*.cs)
  211.  
  212. analytics_sources = $(wildcard src/analytics/*.cs) $(wildcard version/*.cs)
  213.  
  214. test_sources = $(wildcard src/unittests/*.cs) $(wildcard src/unittests/gbase/*.cs) $(wildcard src/unittests/gapps/*.cs)\
  215.  
  216. $(wildcard src/unittests/spreadsheets/*.cs) $(wildcard src/unittests/youtube/*.cs) $(wildcard src/version/*cs)\
  217.  
  218. $(wildcard src/unittests/core/*.cs) $(wildcard src/unittests/picasa/*.cs)
  219.  
  220.  
  221.  
  222. Google.GData.Client.dll: $(core_sources) src/core/clientkey.sn
  223.  
  224. $(CSC) $(DEFINES) -target:library -out:$@ $(core_sources) $(FRAMEWORK_REFS) -keyfile:src/core/clientkey.sn
  225.  
  226.  
  227.  
  228. Google.GData.Extensions.dll: Google.GData.Client.dll $(extension_sources) src/extensions/extensionkey.sn
  229.  
  230. $(CSC) $(DEFINES) -target:library -out:$@ -r:Google.GData.Client.dll $(extensions_sources) $(FRAMEWORK_REFS) -keyfile:src/extensions/extensionkey.sn
  231.  
  232.  
  233.  
  234. Google.GData.Calendar.dll: $(ACLLIBS) $(gcalendar_sources) src/gcalendar/calendarkey.sn
  235.  
  236. $(CSC) -target:library -out:$@ $(ACLREFS) $(gcalendar_sources) -keyfile:src/gcalendar/calendarkey.sn
  237.  
  238.  
  239.  
  240. Google.GData.CodeSearch.dll: $(CORELIBS) $(gcodesearch_sources) src/gcodesearch/codesearch.sn
  241.  
  242. $(CSC) -target:library -out:$@ $(COREREFS) $(gcodesearch_sources) -keyfile:src/gcodesearch/codesearch.sn
  243.  
  244.  
  245.  
  246. Google.GData.GoogleBase.dll: $(CORELIBS) $(gbase_sources) src/gbase/gbase.sn
  247.  
  248. $(CSC) -target:library -out:$@ $(COREREFS) $(gbase_sources) -keyfile:src/gbase/gbase.sn
  249.  
  250.  
  251.  
  252. Google.GData.Spreadsheets.dll: $(CORELIBS) $(gspreadsheet_sources) src/gspreadsheet/spreadsheets.sn
  253.  
  254. $(CSC) -target:library -out:$@ $(COREREFS) $(gspreadsheet_sources) -keyfile:src/gspreadsheet/spreadsheets.sn
  255.  
  256.  
  257.  
  258. Google.GData.AccessControl.dll: $(CORELIBS) $(gacl_sources) src/gacl/gacl.sn
  259.  
  260. $(CSC) -target:library -out:$@ $(COREREFS) $(gacl_sources) -keyfile:src/gacl/gacl.sn
  261.  
  262.  
  263.  
  264. Google.GData.Apps.dll: $(CORELIBS) $(gapps_sources) src/gapps/gapps.sn
  265.  
  266. $(CSC) -target:library -out:$@ $(COREREFS) $(gapps_sources) -keyfile:src/gapps/gapps.sn
  267.  
  268.  
  269.  
  270. Google.GData.Photos.dll: $(CORELIBS) $(gphotos_sources) src/gphotos/picasa.sn
  271.  
  272. $(CSC) $(DEFINES) -target:library -out:$@ $(COREREFS) $(gphotos_sources) -keyfile:src/gphotos/picasa.sn
  273.  
  274.  
  275.  
  276. Google.GData.Documents.dll: $(ACLLIBS) $(gdocuments_sources) src/documents3/documents.sn
  277.  
  278. $(CSC) $(DEFINES) -target:library -out:$@ $(ACLREFS) $(gdocuments_sources) -keyfile:src/documents3/documents.sn
  279.  
  280.  
  281.  
  282. Google.GData.Contacts.dll: $(CORELIBS) $(gcontact_sources) src/gcontacts/contacts.sn
  283.  
  284. $(CSC) $(DEFINES) -target:library -out:$@ $(COREREFS) $(gcontact_sources) -keyfile:src/gcontacts/contacts.sn
  285.  
  286.  
  287.  
  288. Google.GData.YouTube.dll: $(CORELIBS) $(youtube_sources) src/youtube/youtube.sn
  289.  
  290. $(CSC) $(DEFINES) -target:library -out:$@ $(COREREFS) $(youtube_sources) -keyfile:src/youtube/youtube.sn
  291.  
  292.  
  293.  
  294. Google.GData.Health.dll: $(CORELIBS) $(health_sources) src/ghealth/ghealth.sn
  295.  
  296. $(CSC) $(DEFINES) -target:library -out:$@ $(COREREFS) $(health_sources) -keyfile:src/ghealth/ghealth.sn
  297.  
  298.  
  299.  
  300. Google.GData.Blogger.dll: $(CORELIBS) $(blogger_sources) src/blogger/blogger.sn
  301.  
  302. $(CSC) $(DEFINES) -target:library -out:$@ $(COREREFS) $(blogger_sources) -keyfile:src/blogger/blogger.sn
  303.  
  304.  
  305.  
  306. Google.GData.Analytics.dll: $(CORELIBS) $(analytics_sources) src/analytics/analytics.sn
  307.  
  308. $(CSC) $(DEFINES) -target:library -out:$@ $(COREREFS) $(analytics_sources) -keyfile:src/analytics/analytics.sn
  309.  
  310.  
  311.  
  312.  
  313.  
  314. clean:
  315.  
  316. -rm -f *.sn *.dll *exe $(PKGCONFIG_FILES)
  317.  
  318.  
  319.  
  320. install: all
  321.  
  322. for i in $(ALLLIBS); do gacutil -i $$i -package GData-Sharp -root "$(DESTDIR)$(PREFIX)/lib"; done
  323.  
  324. install -d "$(DESTDIR)$(PKGCONFIGDIR)"
  325.  
  326. install -m 644 -t "$(DESTDIR)$(PKGCONFIGDIR)" $(PKGCONFIG_FILES)
  327.  
  328.  
  329.  
  330. uninstall:
  331.  
  332. for i in $(UNINSTALLLIBS); do gacutil -u $$i -package GData-Sharp -root "$(DESTDIR)$(PREFIX)/lib"; done
  333.  
  334. for i in $(PKGCONFIG_FILES) ; do rm "$(DESTDIR)$(PKGCONFIGDIR)/$$i" ; done
  335.  
  336.  
  337.  
  338. tests: $(ALLLIBS)
  339.  
  340. $(CSC) $(DEFINES) -target:library -out:unittests.dll $(ALLREFS) -r:nunit.framework.dll $(test_sources)
  341.  
  342.  
  343.  
  344. gbase_customertool_sources = samples/gbase/example.cs \
  345.  
  346. samples/gbase/customertool.cs \
  347.  
  348. samples/gbase/commands.cs
  349.  
  350.  
  351.  
  352. gbase_customertool.exe: $(ALLLIBS) $(gbase_customertool_sources)
  353.  
  354. $(CSC) -out:$@ $(ALLREFS) $(gbase_customertool_sources)
  355.  
  356.  
  357.  
  358. gbase_queryexample_sources = samples/gbase/example.cs samples/gbase/queryexample.cs
  359.  
  360. gbase_queryexample.exe: $(ALLLIBS) $(gbase_queryexample_sources)
  361.  
  362. $(CSC) -out:$@ $(ALLREFS) $(gbase_queryexample_sources)
  363.  
  364.  
  365.  
  366. gapps_sample_sources = samples/appsforyourdomain/appsdemo.cs
  367.  
  368. gapps_appsdemo.exe: $(ALLLIBS) $(gapps_sample_sources)
  369.  
  370. $(CSC) -out:$@ $(ALLREFS) $(gapps_sample_sources)
  371.  
  372.  
  373.  
  374. gapps_migration_sample_sources = samples/appsforyourdomain/migration/migrationsample.cs
  375.  
  376. gapps_migration_sample.exe: $(ALLLIBS) $(gapps_migration_sample_sources)
  377.  
  378. $(CSC) -out:$@ $(ALLREFS) $(gapps_migration_sample_sources)
  379.  
  380.  
  381.  
  382. execrequest_sources = $(wildcard samples/execrequest/*.cs)
  383.  
  384. execrequest.exe: $(ALLLIBS) $(execrequest_sources)
  385.  
  386. $(CSC) -out:$@ $(ALLREFS) $(execrequest_sources)
  387.  
  388.  
  389.  
  390. gblogger_sample_sources = samples/blogger/ConsoleSample.cs
  391.  
  392. gblogger_demo.exe: $(ALLLIBS) $(gblogger_sample_sources)
  393.  
  394. $(CSC) -out:$@ $(ALLREFS) $(gblogger_sample_sources)
  395.  
  396.  
  397.  
  398. gcal_demo_sources = samples/calendar/console/CalendarDemo.cs
  399.  
  400. gcal_demo.exe: $(ALLLIBS) $(gcal_demo_sources)
  401.  
  402. $(CSC) -out:$@ $(ALLREFS) $(gcal_demo_sources)
  403.  
  404.  
  405.  
  406. gspreadsheet_demo_sources = samples/spreadsheets/spreadsheetdemo.cs
  407.  
  408. gspreadsheet_demo.exe: $(ALLLIBS) $(gspreadsheet_demo_sources)
  409.  
  410. $(CSC) -out:$@ $(ALLREFS) $(gspreadsheet_demo_sources)
  411.  
  412.  
  413.  
  414. PhotoTool_sources = $(wildcard samples/PhotoBrowser/*.cs)
  415.  
  416. PhotoTool.exe: $(ALLLIBS) $(PhotoTool_sources)
  417.  
  418. $(CSC) -out:$@ $(ALLREFS) -r:System.Windows.Forms -r:System.Drawing -r:System.Data $(PhotoTool_sources)
  419.  
  420.  
  421.  
  422. healthtool_sources = $(wildcard samples/health/*.cs)
  423.  
  424. HealthTool.exe: $(ALLLIBS) $(healthtool_sources)
  425.  
  426. $(CSC) -out:$@ $(ALLREFS) $(healthtool_sources)
  427.  
  428.  
  429.  
  430. test:
  431.  
  432. nunit-console2 unittests.dll
  433.  
  434.  
  435.  
  436. %.pc : %.pc.in
  437.  
  438. sed "s,\@VERSION\@,$(VERSION),g; s,\@prefix\@,$(PREFIX),g" < $< > $@
Advertisement
Add Comment
Please, Sign In to add comment