Discrete geometry approach to structure-preserving discretization of Port-Hamiltonian systems door