Macports installs all ports with
make -w install --prefix=/some/weird/path
In gnuplot that works perfectly for everything but TEXDIR. As a consequence files gnuplot-lua-tikz.sty, gnuplot.cfg, ... end up in the wrong place and macports isn't able to remove them when gnuplot is uninstalled. One can create patches and workarounds, but it would be nice to fix the behaviour in gnuplot's configuration. See also Dan's report at https://trac.macports.org/ticket/32872.
Another related issue is that files should end up under
/tex/context/third/gnuplot-lua-tikz/t-gnuplot-lua-tikz.tex
/tex/generic/gnuplot-lua-tikz/gnuplot-lua-tikz-common.tex
/tex/latex/gnuplot-lua-tikz/gnuplot-lua-tikz.sty
/tex/latex/gnuplot/gnuplot.cfg
/tex/plain/gnuplot-lua-tikz/gnuplot-lua-tikz.tex
and not all under tex/latex/gnuplot since they are useless both in plain TeX and ConTeXt if all of them are simply put under latex.
Here's what looks to be the relevant lines of code in the share/LaTeX/Makefile construct via configure:
I would guess for my configuration that DESTDIR is empty because the $(DESTDIR)$(texdir) looks to be the same as $(texdir). When you refer to DESTDIR not being observed, do you think that DESTDIR is something other than empty on Macporst? Why is there a prefix $(DESTDIR) added to the install/uninstall directory? Don't we want the file to simply go to $(texdir)?