The google-api-adwords-perl module isn't in CPAN for some reason, so it would be great to have an ebuild for it. The Google::Adwords perl module in CPAN is outdated and only supports v13 of the API which will be sunsetted in a couple months. http://code.google.com/p/google-api-adwords-perl/ Reproducible: Always
First an ebuild for SOAP-WSDL will have to be done. 4) This client library relies on a development version of the SOAP::WSDL module, and also relies on patches to that module. You download the version of SOAP::WSDL available at http://soap-wsdl.svn.sourceforge.net/viewvc/soap-wsdl/SOAP-WSDL/branches/Typemap.tar.gz?view=tar&pathrev=846 and expand the gzip and tar archive. Once that's done, run the soap_wsdl_patches.pl script on the expanded Typemap directory like so: bin/soap_wsdl_patches.pl /path/to/downloaded/Typemap 5) Install the patched SOAP::WSDL following the directions in its README.
Created attachment 220169 [details] SOAP-WSDL-2.00.10.ebuild non patched
Created attachment 220171 [details] Class-Std-0.011.ebuild Class-Std-Fast dep
Created attachment 220173 [details] Class-Std-Fast-0.0.8.ebuild SOAP-WSDL dep
Created attachment 220179 [details] Text-Patch-1.4.ebuild dep
Created attachment 220181 [details] README
Created attachment 220183 [details] google-api-adwords-perl-1.3.0.ebuild I get this error; >>> Unpacking source... >>> Unpacking google-api-adwords-perl-1.3.0.tar.gz to /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work >>> Source unpacked in /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work >>> Preparing source in /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work ... /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/temp/environment: line 282: pushd: /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work/google-api-adwords-perl-1.3.0: No such file or directory /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/temp/environment: line 313: popd: directory stack empty >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work ... * No Make or Build file detected...
Created attachment 220195 [details] google-api-adwords-perl-1.3.0.ebuild Still missing deps but better
Thank you for putting that together. Do you think the patched SOAP-WSDL dependency is the reason google-api-adwords-perl isn't in CPAN? As for the error you were getting, I brought that to the google-api-adwords-perl Google Group. Did you fix it?
Created attachment 220199 [details] google-api-adwords-perl-1.3.0.ebuild Ok installed here a bunch of perl modules, not sure if it works or not.
(In reply to comment #9) > Thank you for putting that together. Do you think the patched SOAP-WSDL > dependency is the reason google-api-adwords-perl isn't in CPAN? > > As for the error you were getting, I brought that to the > google-api-adwords-perl Google Group. Did you fix it? > It installs fine now, like I said, I have not used it, but it installed a ton of stuff http://linuxcrazy.pastebin.com/f1157d96a
Thank you David. I'm curious why you wrote ebuilds for the dependencies instead of using g-cpan? Is SOAP-WSDL-2.00.10.ebuild the correct version for google-api-adwords-perl then? Can it be patched after the ebuild installs?
(In reply to comment #12) > Thank you David. > > I'm curious why you wrote ebuilds for the dependencies instead of using g-cpan? > > Is SOAP-WSDL-2.00.10.ebuild the correct version for google-api-adwords-perl > then? Can it be patched after the ebuild installs? > If we want it to be submitted to the main tree at some point I think all the dependencies need to be met; http://www.gentoo.org/proj/en/devrel/handbook/hb-policy-ebuild.xml I think that is the correct one, I did not get that far. feel free to give it a go :) thanks for your help Do you think there will be a big demand for this tool? Have you tried to use it yet?
There will definitely be a big influx of people switching from Google::Adwords to google-api-adwords-perl since the author just notified everyone on the Adwords Google Group that he won't be updating Google::Adwords for v2009: http://groups.google.com/group/adwords-api/browse_thread/thread/a5630e74e6a81839 The previous version (v13) will be sunsetted in a couple months. I can't imagine anyone using Google::Adwords on Gentoo and not switching to this ebuild. :) I will test it out ASAP and report back here.
(In reply to comment #1) > First an ebuild for SOAP-WSDL will have to be done. > > 4) This client library relies on a development version of the SOAP::WSDL > module, > and also relies on patches to that module. You download the version of > SOAP::WSDL available at > > http://soap-wsdl.svn.sourceforge.net/viewvc/soap-wsdl/SOAP-WSDL/branches/Typemap.tar.gz?view=tar&pathrev=846 > and expand the gzip and tar archive. Once that's done, run the > soap_wsdl_patches.pl script on the expanded Typemap directory like so: > > bin/soap_wsdl_patches.pl /path/to/downloaded/Typemap > > 5) Install the patched SOAP::WSDL following the directions in its README. > Here is a patched SOAP::WSDL http://nooone.info/downloads/Typemap.tar.bz2
Created attachment 236987 [details] Typemap-0.1.ebuild Patched Typemap ebuild SOAP-WSDL should not be needed.
Created attachment 236989 [details] google-api-adwords-perl-1.3.0.ebuild added dep for patched Typemap removed SOAP-WSDL
Created attachment 236991 [details] google-api-adwords-perl-1.3.2.ebuild latest is 1.3.2
There are 2 additional dependencies for google-api-adwords-perl-1.3.2.ebuild: Template (the same as Template-Toolkit I think) Term-ReadKey Both are in portage.
Created attachment 237009 [details] google-api-adwords-perl-1.3.2.ebuild Updated the deps, thanks Grant :)
Created attachment 237011 [details] google-api-adwords-perl-1.3.2.ebuild fixed the SRC_URI
I've got more testing to do but it looks like it's working. I'll report back with more ASAP.
I'm also working on finding a way to get the perl script patch to execute inside an ebuild. Here's the original script: http://pastebin.com/YM3G5sKn Please let me know if you have any ideas. If we can get that to work, we could set up a USE flag for the SOAP-WSDL ebuild that would allow you to specify patched or unpatched, and then I think this whole thing could go into portage.
Created attachment 237167 [details] diff after perl script is run I could not get the patch to work clean. May need to manually create the patch and add useflag based depends; src_prepare() { if use google ; then epatch "${FILESDIR}/${PN}.patch" | die "google patch failed" fi }
The ebuild works perfectly. I've done extensive testing with the library now and all is well.
After some recent perl changes, Class::Inspector seems to be missing and is required by google-api-adwords-perl.
(In reply to comment #26) > After some recent perl changes, Class::Inspector seems to be missing and is > required by google-api-adwords-perl. > eix Class-Inspector [I] dev-perl/Class-Inspector Available versions: 1.17 (~)1.23 1.24 {test} Installed versions: 1.24(04:26:35 21/07/10)(test) Homepage: http://search.cpan.org/dist/Class-Inspector/ Description: Provides information about Classes Huh?
I'm sorry I should have been more clear. Before the perl changes that took place on my system as the result of an emerge -DuN world, google-api-adwords-perl worked perfectly. After the perl changes, google-api-adwords-perl complained about a missing Class::Inspector. I guess it was bundled with something before, but no longer? Anyway, emerging Class-Inspector fixed it so I thought I would note here that it should be a dependency of google-api-adwords-perl.
(In reply to comment #28) > I'm sorry I should have been more clear. > > Before the perl changes that took place on my system as the result of an emerge > -DuN world, google-api-adwords-perl worked perfectly. After the perl changes, > google-api-adwords-perl complained about a missing Class::Inspector. I guess > it was bundled with something before, but no longer? Anyway, emerging > Class-Inspector fixed it so I thought I would note here that it should be a > dependency of google-api-adwords-perl. > It may help if you report the exact error that occurred, perhaps with -MCarp::Always or -MDevel::SimpleTrace added to your perl invocation to get a better backtrace. I can't see Class::Inspector referenced anywhere in the source.
Could anyone help update this ebuild to 2.5.0? I tried renaming but it just removes all files installed by the previous version and installs nothing. http://code.google.com/p/google-api-adwords-perl/
I'm picking this up.. looks like version 2.5.x do not require patched SOAP-WSDL (luckily), but the latest version has trouble with tests.
In tree version 2.5.6 (tests restricted for the time being, ~x86 dropped until tested).