Been doing it for years. *LINK*
Jason Roehl in Lafayette, IN
I first cobbled something together in 2010 when I got back into cycling. Since the reason for cycling anew was a week-long fundraising ride of about 60 miles per day, I wanted to use my iPhone's GPS function to track my ride. There was no way the battery was going to last the 5-6 hours I'd be out on the road each day (including SAG stops, lunch and sightseeing).
At first I was looking for a reasonably-sized 12V lantern battery or similar that I could carry on the bike, but I couldn't find anything that either fell into my price requirement (a few bucks), or weight restriction (a pound or so). Eventually, the light went on when I was using my cordless drill--a 14.4V Porter-Cable. Fully charged they're actually about 17.5V, but I had an old power port that never found its way into its intended vehicle, and I had a 12V charger cord for the iPhone. USB is a 5V standard anyway, so I figured the plug would take care of the slight voltage difference. It worked great. Even though I kept my phone charged overnight, I probably could have gone all week off the cordless drill battery (which I also charged each night).
I've since upgraded the phone a couple times, and upgraded the battery situation to an older version of one of these:
http://www.amazon.com/6000mAh-Portable-Rapid-Recharge-External-adapters/dp/B00EF1OGOG/ref=sr_1_10?ie=UTF8&qid=1386973500&sr=8-10&keywords=anker+external+battery
Much lighter, and the one I have is 5600mAh (about enough for 4 full charges of my iPhone), and it has a flashlight on it to boot. There are smaller and much larger sizes available.
Jason
Anker External Battery