We have some ebuilds that install things into a certain directory. As it stands, a few of the ebuilds create the directory, while others just assume its presence. To address this situation, I want to create an ebuild that ONLY creates the directory, so that the other ebuilds can just depend on that ebuild, and then everything is modular and encapsulated, etc.
1) Is this the right way to go about this kind of thing in gentoo-land?
2) Is there a specific ebuild function that should be used for this? Right now I've got
...
src_configure() {
mkdir my/dir
sudo fowners myuser my/dir
}
but it's complaining that the source directory does exist. I could explicitly create said directory, but since this ebuild isn't actually installing anything, I'd rather not.