srcpkg is a program for managing separate software packages under the same directory hierarchy.
srcpkg is similar to GNU Stow, Depot, etc., but is designed to be able to handle large, complex, interdependent packages such as those of KDE and GNOME.
srcpkg works by creating packages from new files found in the target directory tree. This allows packages to be installed as they were intended, into a specific prefix (eg. /usr/local), and srcpkg takes care of moving the new files to a separate package directory and creating symlinks into the target tree.
srcpkg is a Perl script, so it requires Perl 5.6 or above. srcpkg may be ported to C in a future version; if this would be beneficial to you, please contact the author.
srcpkg project has successfully been used to manage a large number of software packages, notably Gnome and KDE.