Index: head/print/Makefile =================================================================== --- head/print/Makefile (revision 410929) +++ head/print/Makefile (revision 410930) @@ -1,271 +1,272 @@ # $FreeBSD$ # COMMENT = Desktop publishing SUBDIR += R-cran-knitr SUBDIR += a2pdf SUBDIR += a2ps SUBDIR += abc2mtex SUBDIR += abcm2ps SUBDIR += adobe-cmaps SUBDIR += afm SUBDIR += alignmargins SUBDIR += ansiprint SUBDIR += apsfilter SUBDIR += asprint SUBDIR += auctex SUBDIR += axpoint SUBDIR += bibcursed SUBDIR += biblio-py SUBDIR += bibview SUBDIR += c2ps SUBDIR += catdvi SUBDIR += cdlabelgen SUBDIR += cloudprint SUBDIR += cups SUBDIR += cups-bjnp SUBDIR += cups-cloud-print + SUBDIR += cups-connector SUBDIR += cups-filters SUBDIR += cups-fxlinuxprint SUBDIR += cups-pdf SUBDIR += cups-pk-helper SUBDIR += cups-smb-backend SUBDIR += deforaos-pdfviewer SUBDIR += detex SUBDIR += dot2tex SUBDIR += dvi2tty SUBDIR += dvips2ascii SUBDIR += dvisvg SUBDIR += dymo-cups-drivers SUBDIR += easylatex SUBDIR += enscript-a4 SUBDIR += enscript-letter SUBDIR += enscript-letterdj SUBDIR += enscriptfonts SUBDIR += epson-inkjet-printer-escpr SUBDIR += epsonepl SUBDIR += flpsed SUBDIR += font-amsfonts SUBDIR += font2svg SUBDIR += fontforge SUBDIR += foo2zjs SUBDIR += foomatic-db SUBDIR += foomatic-db-engine SUBDIR += foomatic-db-hpijs SUBDIR += foomatic-filters SUBDIR += foxitreader SUBDIR += fpdf SUBDIR += freetype SUBDIR += freetype2 SUBDIR += frescobaldi SUBDIR += ft2demos SUBDIR += ggv SUBDIR += ghostscript7-base SUBDIR += ghostscript7-commfont SUBDIR += ghostscript7-jpnfont SUBDIR += ghostscript7-korfont SUBDIR += ghostscript7-x11 SUBDIR += ghostscript8-base SUBDIR += ghostscript8-x11 SUBDIR += ghostscript9-agpl-base SUBDIR += ghostscript9-agpl-x11 SUBDIR += ghostscript9-base SUBDIR += ghostscript9-x11 SUBDIR += gimp-gutenprint SUBDIR += gl2ps SUBDIR += gnome-cups-manager SUBDIR += gnomephotoprinter SUBDIR += gribouy SUBDIR += gsfonts SUBDIR += gspdf SUBDIR += gsview SUBDIR += gtklp SUBDIR += gutenprint SUBDIR += gutenprint-base SUBDIR += gutenprint-cups SUBDIR += gutenprint-foomatic SUBDIR += gutenprint-ijs SUBDIR += gv SUBDIR += harfbuzz SUBDIR += hp2xx SUBDIR += hpijs SUBDIR += hplip SUBDIR += hplip-plugin SUBDIR += hs-hscolour SUBDIR += html2latex SUBDIR += html2ps SUBDIR += hyperlatex SUBDIR += indexinfo SUBDIR += jabref SUBDIR += kde4-print-manager SUBDIR += kde_poster SUBDIR += kover SUBDIR += kpdftool SUBDIR += latex-beamer SUBDIR += latex-biber SUBDIR += latex-ltablex SUBDIR += latex-resume SUBDIR += latex2rtf SUBDIR += latexdiff SUBDIR += lgrind SUBDIR += libgnomecups SUBDIR += libgnomeprint SUBDIR += libgnomeprint-reference SUBDIR += libgnomeprintmm SUBDIR += libharu SUBDIR += libijs SUBDIR += libmspub01 SUBDIR += libotf SUBDIR += libpagemaker SUBDIR += libpaper SUBDIR += libppd SUBDIR += libspectre SUBDIR += lilypond SUBDIR += lilypond-devel SUBDIR += linux-c6-cups-libs SUBDIR += linux-f10-cups-libs SUBDIR += lout SUBDIR += lpr-wrapper SUBDIR += lprps SUBDIR += lyx SUBDIR += magicfilter SUBDIR += makeindex SUBDIR += mftrace SUBDIR += min12xxw SUBDIR += mp-a4 SUBDIR += mp-letter SUBDIR += mpage SUBDIR += mup SUBDIR += musixtex SUBDIR += muttprint SUBDIR += nenscript SUBDIR += okc321 SUBDIR += openprinting SUBDIR += p5-Font-FreeType SUBDIR += p5-Net-CUPS SUBDIR += p5-Net-Printer SUBDIR += p5-PDF-Template SUBDIR += p5-PDFLib SUBDIR += p5-PostScript SUBDIR += p5-PostScript-PPD SUBDIR += p5-PostScript-Simple SUBDIR += p5-Text-PDF SUBDIR += p5-XML-ApacheFOP SUBDIR += p910nd SUBDIR += panda SUBDIR += papersize-default-a4 SUBDIR += papersize-default-letter SUBDIR += paps SUBDIR += pcal SUBDIR += pdf-renderer SUBDIR += pdf4tcl SUBDIR += pdfbox SUBDIR += pdfcube SUBDIR += pdflib SUBDIR += pdflib-perl SUBDIR += pdftk SUBDIR += pear-File_PDF SUBDIR += pecl-haru SUBDIR += pecl-pdflib SUBDIR += pecl-ps SUBDIR += pfbtopfa SUBDIR += photoprint SUBDIR += pic2fig SUBDIR += pkfonts118 SUBDIR += pkfonts240 SUBDIR += pkfonts300 SUBDIR += pkfonts360 SUBDIR += pkfonts400 SUBDIR += pkfonts600 SUBDIR += pkipplib SUBDIR += pkpgcounter SUBDIR += pmw SUBDIR += pnm2ppa SUBDIR += poster SUBDIR += ps2eps SUBDIR += pscal SUBDIR += psdim SUBDIR += pslib SUBDIR += pstotext SUBDIR += psutils SUBDIR += py-fonttools SUBDIR += py-fpdf SUBDIR += py-pdf SUBDIR += py-pollyreports SUBDIR += py-preppy SUBDIR += py-pycups SUBDIR += py-pyscript SUBDIR += py-qt5-printsupport SUBDIR += py-relatorio SUBDIR += py-reportlab SUBDIR += py-reportlab1 SUBDIR += py-reportlab2 SUBDIR += py-rtf SUBDIR += py-trml2pdf SUBDIR += qpdf SUBDIR += qpdfview SUBDIR += qt5-printsupport SUBDIR += rlpr SUBDIR += rprint SUBDIR += rtf2latex2e SUBDIR += rubygem-afm SUBDIR += rubygem-color SUBDIR += rubygem-color-tools SUBDIR += rubygem-pdf-core SUBDIR += rubygem-pdf-reader SUBDIR += rubygem-pdf-writer SUBDIR += rubygem-prawn SUBDIR += rubygem-prawn-core SUBDIR += rubygem-prawn-flexible-table SUBDIR += rubygem-prawn-format SUBDIR += rubygem-prawn-graph SUBDIR += rubygem-prawn-js SUBDIR += rubygem-prawn-layout SUBDIR += rubygem-prawn-security SUBDIR += rubygem-prawn-svg SUBDIR += rubygem-rbpdf SUBDIR += rubygem-rbpdf-font SUBDIR += rubygem-ttfunk SUBDIR += scribus SUBDIR += sgf2tex SUBDIR += splix SUBDIR += system-config-printer SUBDIR += t1utils SUBDIR += tex SUBDIR += tex-aleph SUBDIR += tex-basic-engines SUBDIR += tex-dvipdfmx SUBDIR += tex-dvipsk SUBDIR += tex-formats SUBDIR += tex-jadetex SUBDIR += tex-luatex SUBDIR += tex-ptexenc SUBDIR += tex-xdvik SUBDIR += tex-xetex SUBDIR += tex-xmltex SUBDIR += texinfo SUBDIR += texlive-base SUBDIR += texlive-docs SUBDIR += texlive-full SUBDIR += texlive-texmf SUBDIR += texlive-texmf-source SUBDIR += texlive-tlmgr SUBDIR += texvc SUBDIR += tgif2tex SUBDIR += transfig SUBDIR += trueprint SUBDIR += ttf2pt1 SUBDIR += ttfquery SUBDIR += ttftot42 SUBDIR += txtbdf2ps SUBDIR += typetools SUBDIR += utopia SUBDIR += xfce4-print SUBDIR += xmbibtex SUBDIR += xpdfopen SUBDIR += xpp SUBDIR += xtexsh SUBDIR += yatex .include Index: head/print/cups-connector/Makefile =================================================================== --- head/print/cups-connector/Makefile (nonexistent) +++ head/print/cups-connector/Makefile (revision 410930) @@ -0,0 +1,79 @@ +# $FreeBSD$ + +PORTNAME= cups-connector +PORTVERSION= 0.0.0.2016.03.09 +CATEGORIES= print + +MAINTAINER= swills@FreeBSD.org +COMMENT= Share CUPS printers via Google Cloud Print + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= go:${PORTSDIR}/lang/go \ + cups>=0:${PORTSDIR}/print/cups \ + avahi-app>=0:${PORTSDIR}/net/avahi-app + +USES= compiler pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= google:DEFAULT codegangsta:cli coreos:gosystemd \ + golang:oauth2,net mildred:xdg +GH_PROJECT= cli:cli go-systemd:gosystemd oauth2:oauth2 net:net \ + go-xdg:xdg +GH_TAGNAME= 1fdc26d:DEFAULT a294348:cli 7b2428f:gosystemd \ + 2cd4472:oauth2 6acef71:net 875014b:xdg + +BIN_FILES= gcp-connector-util gcp-cups-connector +PLIST_FILES= ${BIN_FILES:S/^/bin\//} + +OPTIONS_DEFINE= DOCS + +PORTDOCS= CONTRIBUTING.md README.md + +post-patch: + @${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" \ + ${WRKSRC}/cups/core.go ${WRKSRC}/privet/avahi.go + @${MKDIR} ${WRKSRC}/src/github.com/google/cups-connector +.for src in cdd cups gcp gcp-connector-util gcp-cups-connector \ + gcp-windows-connector lib log manager monitor privet winspool xmpp + @${MV} ${WRKSRC}/${src} \ + ${WRKSRC}/src/github.com/google/cups-connector +.endfor + @${MKDIR} ${WRKSRC}/src/github.com/codegangsta + @${MKDIR} ${WRKSRC}/src/github.com/coreos + @${MKDIR} ${WRKSRC}/src/golang.org/x + @${MKDIR} ${WRKSRC}/src/launchpad.net/go-xdg + @${MV} ${WRKSRC_cli} ${WRKSRC}/src/github.com/codegangsta/cli + @${MV} ${WRKSRC_gosystemd} ${WRKSRC}/src/github.com/coreos/go-systemd + @${MV} ${WRKSRC_oauth2} ${WRKSRC}/src/golang.org/x/oauth2 + @${MV} ${WRKSRC_net} ${WRKSRC}/src/golang.org/x/net + @${MV} ${WRKSRC_xdg} ${WRKSRC}/src/launchpad.net/go-xdg/v0 + +do-build: +.for bin in ${BIN_FILES} + @cd ${WRKSRC}/src/github.com/google/cups-connector; ${SETENV} \ + ${BUILD_ENV} GOPATH=${WRKSRC} go build -o \ + ${WRKSRC}/bin/${bin} ./${bin} +.endfor + +do-install: +.for bin in ${BIN_FILES} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${bin} \ + ${STAGEDIR}${PREFIX}/bin/${bin} +.endfor + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for doc in ${PORTDOCS} + ${CP} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} +.endfor + +.include + +# golang assumes that if clang is in use, it is called "clang" and not "cc". If +# it's called "cc", go may fail +.if ${COMPILER_TYPE} == clang +BUILD_ENV= CC=clang +.endif + +.include Property changes on: head/print/cups-connector/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/print/cups-connector/distinfo =================================================================== --- head/print/cups-connector/distinfo (nonexistent) +++ head/print/cups-connector/distinfo (revision 410930) @@ -0,0 +1,12 @@ +SHA256 (google-cups-connector-0.0.0.2016.03.09-1fdc26d_GH0.tar.gz) = bd3e0aad70c4be1ffd6a22aa79d3f1f81697f1bfc61ea7726dc0fb330a5a5720 +SIZE (google-cups-connector-0.0.0.2016.03.09-1fdc26d_GH0.tar.gz) = 110516 +SHA256 (codegangsta-cli-a294348_GH0.tar.gz) = 163aa4f713f8c5bc5095f6c5d42bdd6b5149df97d02f24dc6de3a86dc1c3c79c +SIZE (codegangsta-cli-a294348_GH0.tar.gz) = 22095 +SHA256 (coreos-go-systemd-7b2428f_GH0.tar.gz) = 25df932ed355c1c113eb8d78b09c3cfa9ff49325e5cf8dceb10178405fddb2eb +SIZE (coreos-go-systemd-7b2428f_GH0.tar.gz) = 40633 +SHA256 (golang-oauth2-2cd4472_GH0.tar.gz) = 2d75dfd24a870026be49f867be02af4088587773e7265a259bcd1bcad4a09bb7 +SIZE (golang-oauth2-2cd4472_GH0.tar.gz) = 34560 +SHA256 (golang-net-6acef71_GH0.tar.gz) = aeea3d55a6e2f29329dfac8330817ccd449ffcb930b496fec0a47f011fa53f19 +SIZE (golang-net-6acef71_GH0.tar.gz) = 741883 +SHA256 (mildred-go-xdg-875014b_GH0.tar.gz) = 45c4688e8bc8e60202a0b2c11ff266dce1afcbd5438b285e267413ffe37a4b7b +SIZE (mildred-go-xdg-875014b_GH0.tar.gz) = 3894 Property changes on: head/print/cups-connector/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/print/cups-connector/files/patch-cups_core.go =================================================================== --- head/print/cups-connector/files/patch-cups_core.go (nonexistent) +++ head/print/cups-connector/files/patch-cups_core.go (revision 410930) @@ -0,0 +1,13 @@ +--- cups/core.go.orig 2016-03-12 14:17:25 UTC ++++ cups/core.go +@@ -9,8 +9,8 @@ + package cups + + /* +-#cgo freebsd CFLAGS: -I/usr/local/include +-#cgo freebsd LDFLAGS: -L/usr/local/lib ++#cgo freebsd CFLAGS: -I%%PREFIX%%/include ++#cgo freebsd LDFLAGS: -L%%PREFIX%%/lib + #include "cups.h" + */ + import "C" Property changes on: head/print/cups-connector/files/patch-cups_core.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/print/cups-connector/files/patch-privet_avahi.go =================================================================== --- head/print/cups-connector/files/patch-privet_avahi.go (nonexistent) +++ head/print/cups-connector/files/patch-privet_avahi.go (revision 410930) @@ -0,0 +1,13 @@ +--- privet/avahi.go.orig 2016-03-12 14:17:35 UTC ++++ privet/avahi.go +@@ -9,8 +9,8 @@ + package privet + + // #cgo linux LDFLAGS: -lavahi-client -lavahi-common +-// #cgo freebsd CFLAGS: -I/usr/local/include +-// #cgo freebsd LDFLAGS: -L/usr/local/lib -lavahi-client -lavahi-common ++// #cgo freebsd CFLAGS: -I%%PREFIX%%/include ++// #cgo freebsd LDFLAGS: -L%%PREFIX%%/lib -lavahi-client -lavahi-common + // #include "avahi.h" + import "C" + import ( Property changes on: head/print/cups-connector/files/patch-privet_avahi.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/print/cups-connector/pkg-descr =================================================================== --- head/print/cups-connector/pkg-descr (nonexistent) +++ head/print/cups-connector/pkg-descr (revision 410930) @@ -0,0 +1,6 @@ +Share printers from your computer with ChromeOS and Android devices, using the +Cloud Print Connector. The Connector is a purpose-built system process. It can +share hundreds of printers on a powerful server, or one printer on a Raspberry +Pi. + +WWW: https://github.com/google/cups-connector Property changes on: head/print/cups-connector/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property