The poem was set to music and recorded by Donovan on his double album "HMS Donovan" (Dawn Records, 1971). I have that record! It's brilliant.
The link provided by Giok leads to a page about someone named Elton Hayes, claiming it was his song. Did he use the same tune as Donovan?