Modifying cgminer to use a GPIO port for serial comm should be fairly straight forward. There should a linux serial driver for RasPi already.
The RasPi has USB connections, no need to use GPIO.https://bitcointalk.org/index.php?topic=161715.msg1883115#msg1883115
For fun... reduce need for usb circuitry.... did i mention for fun?