Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305621 - google-api-adwords-perl ebuild request
Summary: google-api-adwords-perl ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-17 18:39 UTC by A. Person
Modified: 2012-04-11 17:32 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
SOAP-WSDL-2.00.10.ebuild (SOAP-WSDL-2.00.10.ebuild,385 bytes, text/plain)
2010-02-18 15:59 UTC, David Abbott (RETIRED)
Details
Class-Std-0.011.ebuild (Class-Std-0.011.ebuild,370 bytes, text/plain)
2010-02-18 16:00 UTC, David Abbott (RETIRED)
Details
Class-Std-Fast-0.0.8.ebuild (Class-Std-Fast-0.0.8.ebuild,449 bytes, text/plain)
2010-02-18 16:01 UTC, David Abbott (RETIRED)
Details
Text-Patch-1.4.ebuild (Text-Patch-1.4.ebuild,348 bytes, text/plain)
2010-02-18 16:51 UTC, David Abbott (RETIRED)
Details
README (README,4.30 KB, text/plain)
2010-02-18 16:51 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.0.ebuild (google-api-adwords-perl-1.3.0.ebuild,586 bytes, text/plain)
2010-02-18 16:53 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.0.ebuild (google-api-adwords-perl-1.3.0.ebuild,606 bytes, text/plain)
2010-02-18 17:32 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.0.ebuild (google-api-adwords-perl-1.3.0.ebuild,581 bytes, text/plain)
2010-02-18 18:10 UTC, David Abbott (RETIRED)
Details
Typemap-0.1.ebuild (Typemap-0.1.ebuild,488 bytes, text/plain)
2010-06-30 01:29 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.0.ebuild (google-api-adwords-perl-1.3.0.ebuild,579 bytes, text/plain)
2010-06-30 01:31 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.2.ebuild (google-api-adwords-perl-1.3.2.ebuild,579 bytes, text/plain)
2010-06-30 01:50 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.2.ebuild (google-api-adwords-perl-1.3.2.ebuild,628 bytes, text/plain)
2010-06-30 08:56 UTC, David Abbott (RETIRED)
Details
google-api-adwords-perl-1.3.2.ebuild (google-api-adwords-perl-1.3.2.ebuild,628 bytes, text/plain)
2010-06-30 09:03 UTC, David Abbott (RETIRED)
Details
diff after perl script is run (Typemap.diff,7.30 KB, text/plain)
2010-07-01 19:43 UTC, David Abbott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2010-02-17 18:39:56 UTC
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
Comment 1 David Abbott (RETIRED) gentoo-dev 2010-02-17 20:56:05 UTC
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.
Comment 2 David Abbott (RETIRED) gentoo-dev 2010-02-18 15:59:48 UTC
Created attachment 220169 [details]
SOAP-WSDL-2.00.10.ebuild

non patched
Comment 3 David Abbott (RETIRED) gentoo-dev 2010-02-18 16:00:54 UTC
Created attachment 220171 [details]
Class-Std-0.011.ebuild

Class-Std-Fast dep
Comment 4 David Abbott (RETIRED) gentoo-dev 2010-02-18 16:01:48 UTC
Created attachment 220173 [details]
Class-Std-Fast-0.0.8.ebuild

SOAP-WSDL dep
Comment 5 David Abbott (RETIRED) gentoo-dev 2010-02-18 16:51:25 UTC
Created attachment 220179 [details]
Text-Patch-1.4.ebuild

dep
Comment 6 David Abbott (RETIRED) gentoo-dev 2010-02-18 16:51:53 UTC
Created attachment 220181 [details]
README
Comment 7 David Abbott (RETIRED) gentoo-dev 2010-02-18 16:53:43 UTC
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...
Comment 8 David Abbott (RETIRED) gentoo-dev 2010-02-18 17:32:14 UTC
Created attachment 220195 [details]
google-api-adwords-perl-1.3.0.ebuild

Still missing deps but better
Comment 9 A. Person 2010-02-18 17:54:45 UTC
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?
Comment 10 David Abbott (RETIRED) gentoo-dev 2010-02-18 18:10:58 UTC
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.
Comment 11 David Abbott (RETIRED) gentoo-dev 2010-02-18 19:38:16 UTC
(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
Comment 12 A. Person 2010-02-19 16:18:14 UTC
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?
Comment 13 David Abbott (RETIRED) gentoo-dev 2010-02-19 16:48:33 UTC
(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?
Comment 14 A. Person 2010-02-20 17:59:34 UTC
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.
Comment 15 David Abbott (RETIRED) gentoo-dev 2010-02-22 23:01:55 UTC
(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
Comment 16 David Abbott (RETIRED) gentoo-dev 2010-06-30 01:29:42 UTC
Created attachment 236987 [details]
Typemap-0.1.ebuild

Patched Typemap ebuild SOAP-WSDL should not be needed.
Comment 17 David Abbott (RETIRED) gentoo-dev 2010-06-30 01:31:12 UTC
Created attachment 236989 [details]
google-api-adwords-perl-1.3.0.ebuild

added dep for patched Typemap removed SOAP-WSDL
Comment 18 David Abbott (RETIRED) gentoo-dev 2010-06-30 01:50:56 UTC
Created attachment 236991 [details]
google-api-adwords-perl-1.3.2.ebuild

latest is 1.3.2
Comment 19 A. Person 2010-06-30 03:22:20 UTC
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.
Comment 20 David Abbott (RETIRED) gentoo-dev 2010-06-30 08:56:50 UTC
Created attachment 237009 [details]
google-api-adwords-perl-1.3.2.ebuild

Updated the deps, thanks Grant :)
Comment 21 David Abbott (RETIRED) gentoo-dev 2010-06-30 09:03:19 UTC
Created attachment 237011 [details]
google-api-adwords-perl-1.3.2.ebuild

fixed the SRC_URI
Comment 22 A. Person 2010-06-30 23:16:25 UTC
I've got more testing to do but it looks like it's working.  I'll report back with more ASAP.
Comment 23 A. Person 2010-06-30 23:20:22 UTC
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.
Comment 24 David Abbott (RETIRED) gentoo-dev 2010-07-01 19:43:15 UTC
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
}
Comment 25 A. Person 2010-07-24 19:31:47 UTC
The ebuild works perfectly.  I've done extensive testing with the library now and all is well.
Comment 26 A. Person 2010-08-21 19:54:46 UTC
After some recent perl changes, Class::Inspector seems to be missing and is required by google-api-adwords-perl.
Comment 27 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2010-08-21 20:35:39 UTC
(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?
Comment 28 A. Person 2010-08-22 18:46:02 UTC
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.
Comment 29 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2010-08-24 10:08:15 UTC
(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.
Comment 30 A. Person 2011-11-16 18:42:48 UTC
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/
Comment 31 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-02-19 16:10:42 UTC
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.
Comment 32 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-04-11 17:32:41 UTC
In tree version 2.5.6 (tests restricted for the time being, ~x86 dropped until tested).