/usr/share/gEDA/sym/vhdl/script.sed is in geda-symbols 1:1.8.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | /^T.*/ N
s/\(^T.*\)\
\(pin[0-9]*=IN[0-9]*\)/&\
\1\
type=IN/
/^T.*/ N
s/\(^T.*\)\
\(pin[0-9]*=OUT\)/&0\
\1\
type=OUT/
/VERILOG_PORTS=POSITIONAL/ d
|