From 1b8f56c6c419045366f30c8d47d03a195c8ad09d Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Tue, 23 Jan 2018 17:28:55 -0500 Subject: [PATCH] Rename package.bzl to repository.bzl in workspaces --- tools/workspace/README.md | 10 +- .../blas/{package.bzl => repository.bzl} | 0 .../boost/{package.bzl => repository.bzl} | 2 +- .../{package.bzl => repository.bzl} | 2 +- .../bullet/{package.bzl => repository.bzl} | 0 .../ccd/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 tools/workspace/default.bzl | 116 +++++++++--------- .../{package.bzl => repository.bzl} | 2 +- .../dreal/{package.bzl => repository.bzl} | 0 .../eigen/{package.bzl => repository.bzl} | 0 .../expat/{package.bzl => repository.bzl} | 2 +- .../fcl/{package.bzl => repository.bzl} | 0 .../fmt/{package.bzl => repository.bzl} | 0 .../gflags/{package.bzl => repository.bzl} | 2 +- .../glew/{package.bzl => repository.bzl} | 0 .../glib/{package.bzl => repository.bzl} | 0 .../gtest/{package.bzl => repository.bzl} | 0 .../gthread/{package.bzl => repository.bzl} | 0 .../gurobi/{package.bzl => repository.bzl} | 0 .../ibex/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../ipopt/{package.bzl => repository.bzl} | 0 .../lapack/{package.bzl => repository.bzl} | 0 .../lcm/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../liblz4/{package.bzl => repository.bzl} | 0 .../libpng/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../mosek/{package.bzl => repository.bzl} | 2 +- .../{package.bzl => repository.bzl} | 0 .../nlopt/{package.bzl => repository.bzl} | 0 .../numpy/{package.bzl => repository.bzl} | 0 .../octomap/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../protoc/{package.bzl => repository.bzl} | 0 .../pybind11/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../pycps/{package.bzl => repository.bzl} | 0 .../python/{package.bzl => repository.bzl} | 2 +- .../scs/{package.bzl => repository.bzl} | 0 .../sdformat/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../snopt/{package.bzl => repository.bzl} | 0 .../spdlog/{package.bzl => repository.bzl} | 0 .../spruce/{package.bzl => repository.bzl} | 0 .../stx/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../tinydir/{package.bzl => repository.bzl} | 0 .../{package.bzl => repository.bzl} | 0 .../tinyxml/{package.bzl => repository.bzl} | 0 .../tinyxml2/{package.bzl => repository.bzl} | 0 .../vtk/{package.bzl => repository.bzl} | 2 +- .../yaml_cpp/{package.bzl => repository.bzl} | 0 .../zlib/{package.bzl => repository.bzl} | 2 +- 60 files changed, 72 insertions(+), 72 deletions(-) rename tools/workspace/blas/{package.bzl => repository.bzl} (100%) rename tools/workspace/boost/{package.bzl => repository.bzl} (93%) rename tools/workspace/buildifier/{package.bzl => repository.bzl} (94%) rename tools/workspace/bullet/{package.bzl => repository.bzl} (100%) rename tools/workspace/ccd/{package.bzl => repository.bzl} (100%) rename tools/workspace/com_google_protobuf/{package.bzl => repository.bzl} (100%) rename tools/workspace/com_jidesoft_jide_oss/{package.bzl => repository.bzl} (100%) rename tools/workspace/commons_io/{package.bzl => repository.bzl} (100%) rename tools/workspace/drake_visualizer/{package.bzl => repository.bzl} (97%) rename tools/workspace/dreal/{package.bzl => repository.bzl} (100%) rename tools/workspace/eigen/{package.bzl => repository.bzl} (100%) rename tools/workspace/expat/{package.bzl => repository.bzl} (95%) rename tools/workspace/fcl/{package.bzl => repository.bzl} (100%) rename tools/workspace/fmt/{package.bzl => repository.bzl} (100%) rename tools/workspace/gflags/{package.bzl => repository.bzl} (95%) rename tools/workspace/glew/{package.bzl => repository.bzl} (100%) rename tools/workspace/glib/{package.bzl => repository.bzl} (100%) rename tools/workspace/gtest/{package.bzl => repository.bzl} (100%) rename tools/workspace/gthread/{package.bzl => repository.bzl} (100%) rename tools/workspace/gurobi/{package.bzl => repository.bzl} (100%) rename tools/workspace/ibex/{package.bzl => repository.bzl} (100%) rename tools/workspace/ignition_math/{package.bzl => repository.bzl} (100%) rename tools/workspace/ignition_rndf/{package.bzl => repository.bzl} (100%) rename tools/workspace/ipopt/{package.bzl => repository.bzl} (100%) rename tools/workspace/lapack/{package.bzl => repository.bzl} (100%) rename tools/workspace/lcm/{package.bzl => repository.bzl} (100%) rename tools/workspace/lcmtypes_bot2_core/{package.bzl => repository.bzl} (100%) rename tools/workspace/lcmtypes_robotlocomotion/{package.bzl => repository.bzl} (100%) rename tools/workspace/liblz4/{package.bzl => repository.bzl} (100%) rename tools/workspace/libpng/{package.bzl => repository.bzl} (100%) rename tools/workspace/libprotobuf/{package.bzl => repository.bzl} (100%) rename tools/workspace/mosek/{package.bzl => repository.bzl} (97%) rename tools/workspace/net_sf_jchart2d/{package.bzl => repository.bzl} (100%) rename tools/workspace/nlopt/{package.bzl => repository.bzl} (100%) rename tools/workspace/numpy/{package.bzl => repository.bzl} (100%) rename tools/workspace/octomap/{package.bzl => repository.bzl} (100%) rename tools/workspace/optitrack_driver/{package.bzl => repository.bzl} (100%) rename tools/workspace/org_apache_xmlgraphics_commons/{package.bzl => repository.bzl} (100%) rename tools/workspace/protoc/{package.bzl => repository.bzl} (100%) rename tools/workspace/pybind11/{package.bzl => repository.bzl} (100%) rename tools/workspace/pycodestyle/{package.bzl => repository.bzl} (100%) rename tools/workspace/pycps/{package.bzl => repository.bzl} (100%) rename tools/workspace/python/{package.bzl => repository.bzl} (96%) rename tools/workspace/scs/{package.bzl => repository.bzl} (100%) rename tools/workspace/sdformat/{package.bzl => repository.bzl} (100%) rename tools/workspace/semantic_version/{package.bzl => repository.bzl} (100%) rename tools/workspace/snopt/{package.bzl => repository.bzl} (100%) rename tools/workspace/spdlog/{package.bzl => repository.bzl} (100%) rename tools/workspace/spruce/{package.bzl => repository.bzl} (100%) rename tools/workspace/stx/{package.bzl => repository.bzl} (100%) rename tools/workspace/styleguide/{package.bzl => repository.bzl} (100%) rename tools/workspace/tinydir/{package.bzl => repository.bzl} (100%) rename tools/workspace/tinyobjloader/{package.bzl => repository.bzl} (100%) rename tools/workspace/tinyxml/{package.bzl => repository.bzl} (100%) rename tools/workspace/tinyxml2/{package.bzl => repository.bzl} (100%) rename tools/workspace/vtk/{package.bzl => repository.bzl} (99%) rename tools/workspace/yaml_cpp/{package.bzl => repository.bzl} (100%) rename tools/workspace/zlib/{package.bzl => repository.bzl} (95%) diff --git a/tools/workspace/README.md b/tools/workspace/README.md index 23b4dcfe2d8e..be23c9d3fda9 100644 --- a/tools/workspace/README.md +++ b/tools/workspace/README.md @@ -20,7 +20,7 @@ Files named `package.BUILD.bazel` are Drake-specific build rules for external libraries or tools that do not natively support Bazel: https://docs.bazel.build/versions/master/external.html#depending-on-non-bazel-projects -Files named `package.bzl` are repository rules, and intended to be a stable +Files named `repository.bzl` are repository rules, and intended to be a stable entry point for other Bazel projects to refer to the same dependencies that Drake is using: https://docs.bazel.build/versions/master/skylark/concepts.html @@ -43,9 +43,9 @@ Referring to some new third-party software as "foo", the steps are roughly: - Create a new sub-directory `tools/workspace/foo`. - Create `tools/workspace/foo/BUILD.bazel` that calls `add_lint_tests()`. -- Create `tools/workspace/foo/package.bzl` that declares a `foo_repository()` - macro or rule. -- In Drake's top-level `WORKSPACE`, `load()` the new `package.bzl` file and +- Create `tools/workspace/foo/repository.bzl` that declares a + `foo_repository()` macro or rule. +- In Drake's top-level `WORKSPACE`, `load()` the new `repository.bzl` file and call `foo_repository(name = "foo")`. - TODO(jwnimmer-tri) Write the rest of this. @@ -53,7 +53,7 @@ Changing the version of third-party software -------------------------------------------- To temporarily use a local copy of a `github_archive`, within the relevant -`//tools/workspace/foo:package.bzl` file add a `local_repository_archive` +`//tools/workspace/foo:repository.bzl` file add a `local_repository_archive` argument to its `github_archive` macro call pointing at a local checkout, e.g.: github_archive( diff --git a/tools/workspace/blas/package.bzl b/tools/workspace/blas/repository.bzl similarity index 100% rename from tools/workspace/blas/package.bzl rename to tools/workspace/blas/repository.bzl diff --git a/tools/workspace/boost/package.bzl b/tools/workspace/boost/repository.bzl similarity index 93% rename from tools/workspace/boost/package.bzl rename to tools/workspace/boost/repository.bzl index ca76f1b530da..56cf56baf869 100644 --- a/tools/workspace/boost/package.bzl +++ b/tools/workspace/boost/repository.bzl @@ -6,7 +6,7 @@ Makes Boost headers available to be used as a C/C++ dependency. Example: WORKSPACE: - load("@drake//tools/workspace/boost:package.bzl", "boost_repository") + load("@drake//tools/workspace/boost:repository.bzl", "boost_repository") # noqa boost_repository(name = "foo") BUILD: diff --git a/tools/workspace/buildifier/package.bzl b/tools/workspace/buildifier/repository.bzl similarity index 94% rename from tools/workspace/buildifier/package.bzl rename to tools/workspace/buildifier/repository.bzl index b36e62093538..67eb13bb139b 100644 --- a/tools/workspace/buildifier/package.bzl +++ b/tools/workspace/buildifier/repository.bzl @@ -7,7 +7,7 @@ WORKSPACE. Example: WORKSPACE: - load("@drake//tools/workspace/buildifier:package.bzl", "buildifier_repository") # noqa + load("@drake//tools/workspace/buildifier:repository.bzl", "buildifier_repository") # noqa buildifier_repository(name = "foo") BUILD: diff --git a/tools/workspace/bullet/package.bzl b/tools/workspace/bullet/repository.bzl similarity index 100% rename from tools/workspace/bullet/package.bzl rename to tools/workspace/bullet/repository.bzl diff --git a/tools/workspace/ccd/package.bzl b/tools/workspace/ccd/repository.bzl similarity index 100% rename from tools/workspace/ccd/package.bzl rename to tools/workspace/ccd/repository.bzl diff --git a/tools/workspace/com_google_protobuf/package.bzl b/tools/workspace/com_google_protobuf/repository.bzl similarity index 100% rename from tools/workspace/com_google_protobuf/package.bzl rename to tools/workspace/com_google_protobuf/repository.bzl diff --git a/tools/workspace/com_jidesoft_jide_oss/package.bzl b/tools/workspace/com_jidesoft_jide_oss/repository.bzl similarity index 100% rename from tools/workspace/com_jidesoft_jide_oss/package.bzl rename to tools/workspace/com_jidesoft_jide_oss/repository.bzl diff --git a/tools/workspace/commons_io/package.bzl b/tools/workspace/commons_io/repository.bzl similarity index 100% rename from tools/workspace/commons_io/package.bzl rename to tools/workspace/commons_io/repository.bzl diff --git a/tools/workspace/default.bzl b/tools/workspace/default.bzl index 9f2e49760058..295fe4dd2801 100644 --- a/tools/workspace/default.bzl +++ b/tools/workspace/default.bzl @@ -1,63 +1,63 @@ # -*- python -*- -load("@drake//tools/workspace/blas:package.bzl", "blas_repository") -load("@drake//tools/workspace/boost:package.bzl", "boost_repository") -load("@drake//tools/workspace/buildifier:package.bzl", "buildifier_repository") -load("@drake//tools/workspace/bullet:package.bzl", "bullet_repository") -load("@drake//tools/workspace/ccd:package.bzl", "ccd_repository") -load("@drake//tools/workspace/com_google_protobuf:package.bzl", "com_google_protobuf_repository") # noqa -load("@drake//tools/workspace/com_jidesoft_jide_oss:package.bzl", "com_jidesoft_jide_oss_repository") # noqa -load("@drake//tools/workspace/commons_io:package.bzl", "commons_io_repository") -load("@drake//tools/workspace/drake_visualizer:package.bzl", "drake_visualizer_repository") # noqa -load("@drake//tools/workspace/dreal:package.bzl", "dreal_repository") -load("@drake//tools/workspace/eigen:package.bzl", "eigen_repository") -load("@drake//tools/workspace/expat:package.bzl", "expat_repository") -load("@drake//tools/workspace/fcl:package.bzl", "fcl_repository") -load("@drake//tools/workspace/fmt:package.bzl", "fmt_repository") -load("@drake//tools/workspace/gflags:package.bzl", "gflags_repository") -load("@drake//tools/workspace/glew:package.bzl", "glew_repository") -load("@drake//tools/workspace/glib:package.bzl", "glib_repository") -load("@drake//tools/workspace/gtest:package.bzl", "gtest_repository") -load("@drake//tools/workspace/gthread:package.bzl", "gthread_repository") -load("@drake//tools/workspace/gurobi:package.bzl", "gurobi_repository") -load("@drake//tools/workspace/ibex:package.bzl", "ibex_repository") -load("@drake//tools/workspace/ignition_math:package.bzl", "ignition_math_repository") # noqa -load("@drake//tools/workspace/ignition_rndf:package.bzl", "ignition_rndf_repository") # noqa -load("@drake//tools/workspace/ipopt:package.bzl", "ipopt_repository") -load("@drake//tools/workspace/lapack:package.bzl", "lapack_repository") -load("@drake//tools/workspace/lcm:package.bzl", "lcm_repository") -load("@drake//tools/workspace/lcmtypes_bot2_core:package.bzl", "lcmtypes_bot2_core_repository") # noqa -load("@drake//tools/workspace/lcmtypes_robotlocomotion:package.bzl", "lcmtypes_robotlocomotion_repository") # noqa -load("@drake//tools/workspace/liblz4:package.bzl", "liblz4_repository") -load("@drake//tools/workspace/libpng:package.bzl", "libpng_repository") -load("@drake//tools/workspace/libprotobuf:package.bzl", "libprotobuf_repository") # noqa -load("@drake//tools/workspace/mosek:package.bzl", "mosek_repository") -load("@drake//tools/workspace/net_sf_jchart2d:package.bzl", "net_sf_jchart2d_repository") # noqa -load("@drake//tools/workspace/nlopt:package.bzl", "nlopt_repository") -load("@drake//tools/workspace/numpy:package.bzl", "numpy_repository") -load("@drake//tools/workspace/octomap:package.bzl", "octomap_repository") -load("@drake//tools/workspace/optitrack_driver:package.bzl", "optitrack_driver_repository") # noqa -load("@drake//tools/workspace/org_apache_xmlgraphics_commons:package.bzl", "org_apache_xmlgraphics_commons_repository") # noqa -load("@drake//tools/workspace/protoc:package.bzl", "protoc_repository") -load("@drake//tools/workspace/pybind11:package.bzl", "pybind11_repository") -load("@drake//tools/workspace/pycodestyle:package.bzl", "pycodestyle_repository") # noqa -load("@drake//tools/workspace/pycps:package.bzl", "pycps_repository") -load("@drake//tools/workspace/python:package.bzl", "python_repository") -load("@drake//tools/workspace/scs:package.bzl", "scs_repository") -load("@drake//tools/workspace/sdformat:package.bzl", "sdformat_repository") -load("@drake//tools/workspace/semantic_version:package.bzl", "semantic_version_repository") # noqa -load("@drake//tools/workspace/snopt:package.bzl", "snopt_repository") -load("@drake//tools/workspace/spdlog:package.bzl", "spdlog_repository") -load("@drake//tools/workspace/spruce:package.bzl", "spruce_repository") -load("@drake//tools/workspace/stx:package.bzl", "stx_repository") -load("@drake//tools/workspace/styleguide:package.bzl", "styleguide_repository") -load("@drake//tools/workspace/tinydir:package.bzl", "tinydir_repository") -load("@drake//tools/workspace/tinyobjloader:package.bzl", "tinyobjloader_repository") # noqa -load("@drake//tools/workspace/tinyxml2:package.bzl", "tinyxml2_repository") -load("@drake//tools/workspace/tinyxml:package.bzl", "tinyxml_repository") -load("@drake//tools/workspace/vtk:package.bzl", "vtk_repository") -load("@drake//tools/workspace/yaml_cpp:package.bzl", "yaml_cpp_repository") -load("@drake//tools/workspace/zlib:package.bzl", "zlib_repository") +load("@drake//tools/workspace/blas:repository.bzl", "blas_repository") +load("@drake//tools/workspace/boost:repository.bzl", "boost_repository") +load("@drake//tools/workspace/buildifier:repository.bzl", "buildifier_repository") # noqa +load("@drake//tools/workspace/bullet:repository.bzl", "bullet_repository") +load("@drake//tools/workspace/ccd:repository.bzl", "ccd_repository") +load("@drake//tools/workspace/com_google_protobuf:repository.bzl", "com_google_protobuf_repository") # noqa +load("@drake//tools/workspace/com_jidesoft_jide_oss:repository.bzl", "com_jidesoft_jide_oss_repository") # noqa +load("@drake//tools/workspace/commons_io:repository.bzl", "commons_io_repository") # noqa +load("@drake//tools/workspace/drake_visualizer:repository.bzl", "drake_visualizer_repository") # noqa +load("@drake//tools/workspace/dreal:repository.bzl", "dreal_repository") +load("@drake//tools/workspace/eigen:repository.bzl", "eigen_repository") +load("@drake//tools/workspace/expat:repository.bzl", "expat_repository") +load("@drake//tools/workspace/fcl:repository.bzl", "fcl_repository") +load("@drake//tools/workspace/fmt:repository.bzl", "fmt_repository") +load("@drake//tools/workspace/gflags:repository.bzl", "gflags_repository") +load("@drake//tools/workspace/glew:repository.bzl", "glew_repository") +load("@drake//tools/workspace/glib:repository.bzl", "glib_repository") +load("@drake//tools/workspace/gtest:repository.bzl", "gtest_repository") +load("@drake//tools/workspace/gthread:repository.bzl", "gthread_repository") +load("@drake//tools/workspace/gurobi:repository.bzl", "gurobi_repository") +load("@drake//tools/workspace/ibex:repository.bzl", "ibex_repository") +load("@drake//tools/workspace/ignition_math:repository.bzl", "ignition_math_repository") # noqa +load("@drake//tools/workspace/ignition_rndf:repository.bzl", "ignition_rndf_repository") # noqa +load("@drake//tools/workspace/ipopt:repository.bzl", "ipopt_repository") +load("@drake//tools/workspace/lapack:repository.bzl", "lapack_repository") +load("@drake//tools/workspace/lcm:repository.bzl", "lcm_repository") +load("@drake//tools/workspace/lcmtypes_bot2_core:repository.bzl", "lcmtypes_bot2_core_repository") # noqa +load("@drake//tools/workspace/lcmtypes_robotlocomotion:repository.bzl", "lcmtypes_robotlocomotion_repository") # noqa +load("@drake//tools/workspace/liblz4:repository.bzl", "liblz4_repository") +load("@drake//tools/workspace/libpng:repository.bzl", "libpng_repository") +load("@drake//tools/workspace/libprotobuf:repository.bzl", "libprotobuf_repository") # noqa +load("@drake//tools/workspace/mosek:repository.bzl", "mosek_repository") +load("@drake//tools/workspace/net_sf_jchart2d:repository.bzl", "net_sf_jchart2d_repository") # noqa +load("@drake//tools/workspace/nlopt:repository.bzl", "nlopt_repository") +load("@drake//tools/workspace/numpy:repository.bzl", "numpy_repository") +load("@drake//tools/workspace/octomap:repository.bzl", "octomap_repository") +load("@drake//tools/workspace/optitrack_driver:repository.bzl", "optitrack_driver_repository") # noqa +load("@drake//tools/workspace/org_apache_xmlgraphics_commons:repository.bzl", "org_apache_xmlgraphics_commons_repository") # noqa +load("@drake//tools/workspace/protoc:repository.bzl", "protoc_repository") +load("@drake//tools/workspace/pybind11:repository.bzl", "pybind11_repository") +load("@drake//tools/workspace/pycodestyle:repository.bzl", "pycodestyle_repository") # noqa +load("@drake//tools/workspace/pycps:repository.bzl", "pycps_repository") +load("@drake//tools/workspace/python:repository.bzl", "python_repository") +load("@drake//tools/workspace/scs:repository.bzl", "scs_repository") +load("@drake//tools/workspace/sdformat:repository.bzl", "sdformat_repository") +load("@drake//tools/workspace/semantic_version:repository.bzl", "semantic_version_repository") # noqa +load("@drake//tools/workspace/snopt:repository.bzl", "snopt_repository") +load("@drake//tools/workspace/spdlog:repository.bzl", "spdlog_repository") +load("@drake//tools/workspace/spruce:repository.bzl", "spruce_repository") +load("@drake//tools/workspace/stx:repository.bzl", "stx_repository") +load("@drake//tools/workspace/styleguide:repository.bzl", "styleguide_repository") # noqa +load("@drake//tools/workspace/tinydir:repository.bzl", "tinydir_repository") +load("@drake//tools/workspace/tinyobjloader:repository.bzl", "tinyobjloader_repository") # noqa +load("@drake//tools/workspace/tinyxml2:repository.bzl", "tinyxml2_repository") +load("@drake//tools/workspace/tinyxml:repository.bzl", "tinyxml_repository") +load("@drake//tools/workspace/vtk:repository.bzl", "vtk_repository") +load("@drake//tools/workspace/yaml_cpp:repository.bzl", "yaml_cpp_repository") +load("@drake//tools/workspace/zlib:repository.bzl", "zlib_repository") def add_default_repositories(excludes = []): """Declares workspace repositories for all externals needed by drake (other diff --git a/tools/workspace/drake_visualizer/package.bzl b/tools/workspace/drake_visualizer/repository.bzl similarity index 97% rename from tools/workspace/drake_visualizer/package.bzl rename to tools/workspace/drake_visualizer/repository.bzl index 176f64ad5587..51285d5aa597 100644 --- a/tools/workspace/drake_visualizer/package.bzl +++ b/tools/workspace/drake_visualizer/repository.bzl @@ -18,7 +18,7 @@ Build configuration: Example: WORKSPACE: load( - "@drake//tools/workspace/drake_visualizer:package.bzl", + "@drake//tools/workspace/drake_visualizer:repository.bzl", "drake_visualizer_repository", ) drake_visualizer_repository(name = "foo") diff --git a/tools/workspace/dreal/package.bzl b/tools/workspace/dreal/repository.bzl similarity index 100% rename from tools/workspace/dreal/package.bzl rename to tools/workspace/dreal/repository.bzl diff --git a/tools/workspace/eigen/package.bzl b/tools/workspace/eigen/repository.bzl similarity index 100% rename from tools/workspace/eigen/package.bzl rename to tools/workspace/eigen/repository.bzl diff --git a/tools/workspace/expat/package.bzl b/tools/workspace/expat/repository.bzl similarity index 95% rename from tools/workspace/expat/package.bzl rename to tools/workspace/expat/repository.bzl index 028362e4ce66..ea8ecf0f6f35 100644 --- a/tools/workspace/expat/package.bzl +++ b/tools/workspace/expat/repository.bzl @@ -10,7 +10,7 @@ and /usr/lib, respectively. Example: WORKSPACE: - load("@drake//tools/workspace/expat:package.bzl", "expat_repository") + load("@drake//tools/workspace/expat:repository.bzl", "expat_repository") # noqa expat_repository(name = "foo") BUILD: diff --git a/tools/workspace/fcl/package.bzl b/tools/workspace/fcl/repository.bzl similarity index 100% rename from tools/workspace/fcl/package.bzl rename to tools/workspace/fcl/repository.bzl diff --git a/tools/workspace/fmt/package.bzl b/tools/workspace/fmt/repository.bzl similarity index 100% rename from tools/workspace/fmt/package.bzl rename to tools/workspace/fmt/repository.bzl diff --git a/tools/workspace/gflags/package.bzl b/tools/workspace/gflags/repository.bzl similarity index 95% rename from tools/workspace/gflags/package.bzl rename to tools/workspace/gflags/repository.bzl index b82dae15978b..d86b3161568d 100644 --- a/tools/workspace/gflags/package.bzl +++ b/tools/workspace/gflags/repository.bzl @@ -10,7 +10,7 @@ gflags headers and library are always located in /usr/include and Example: WORKSPACE: - load("@drake//tools/workspace/gflags:package.bzl", "gflags_repository") + load("@drake//tools/workspace/gflags:repository.bzl", "gflags_repository") # noqa gflags_repository(name = "foo") BUILD: diff --git a/tools/workspace/glew/package.bzl b/tools/workspace/glew/repository.bzl similarity index 100% rename from tools/workspace/glew/package.bzl rename to tools/workspace/glew/repository.bzl diff --git a/tools/workspace/glib/package.bzl b/tools/workspace/glib/repository.bzl similarity index 100% rename from tools/workspace/glib/package.bzl rename to tools/workspace/glib/repository.bzl diff --git a/tools/workspace/gtest/package.bzl b/tools/workspace/gtest/repository.bzl similarity index 100% rename from tools/workspace/gtest/package.bzl rename to tools/workspace/gtest/repository.bzl diff --git a/tools/workspace/gthread/package.bzl b/tools/workspace/gthread/repository.bzl similarity index 100% rename from tools/workspace/gthread/package.bzl rename to tools/workspace/gthread/repository.bzl diff --git a/tools/workspace/gurobi/package.bzl b/tools/workspace/gurobi/repository.bzl similarity index 100% rename from tools/workspace/gurobi/package.bzl rename to tools/workspace/gurobi/repository.bzl diff --git a/tools/workspace/ibex/package.bzl b/tools/workspace/ibex/repository.bzl similarity index 100% rename from tools/workspace/ibex/package.bzl rename to tools/workspace/ibex/repository.bzl diff --git a/tools/workspace/ignition_math/package.bzl b/tools/workspace/ignition_math/repository.bzl similarity index 100% rename from tools/workspace/ignition_math/package.bzl rename to tools/workspace/ignition_math/repository.bzl diff --git a/tools/workspace/ignition_rndf/package.bzl b/tools/workspace/ignition_rndf/repository.bzl similarity index 100% rename from tools/workspace/ignition_rndf/package.bzl rename to tools/workspace/ignition_rndf/repository.bzl diff --git a/tools/workspace/ipopt/package.bzl b/tools/workspace/ipopt/repository.bzl similarity index 100% rename from tools/workspace/ipopt/package.bzl rename to tools/workspace/ipopt/repository.bzl diff --git a/tools/workspace/lapack/package.bzl b/tools/workspace/lapack/repository.bzl similarity index 100% rename from tools/workspace/lapack/package.bzl rename to tools/workspace/lapack/repository.bzl diff --git a/tools/workspace/lcm/package.bzl b/tools/workspace/lcm/repository.bzl similarity index 100% rename from tools/workspace/lcm/package.bzl rename to tools/workspace/lcm/repository.bzl diff --git a/tools/workspace/lcmtypes_bot2_core/package.bzl b/tools/workspace/lcmtypes_bot2_core/repository.bzl similarity index 100% rename from tools/workspace/lcmtypes_bot2_core/package.bzl rename to tools/workspace/lcmtypes_bot2_core/repository.bzl diff --git a/tools/workspace/lcmtypes_robotlocomotion/package.bzl b/tools/workspace/lcmtypes_robotlocomotion/repository.bzl similarity index 100% rename from tools/workspace/lcmtypes_robotlocomotion/package.bzl rename to tools/workspace/lcmtypes_robotlocomotion/repository.bzl diff --git a/tools/workspace/liblz4/package.bzl b/tools/workspace/liblz4/repository.bzl similarity index 100% rename from tools/workspace/liblz4/package.bzl rename to tools/workspace/liblz4/repository.bzl diff --git a/tools/workspace/libpng/package.bzl b/tools/workspace/libpng/repository.bzl similarity index 100% rename from tools/workspace/libpng/package.bzl rename to tools/workspace/libpng/repository.bzl diff --git a/tools/workspace/libprotobuf/package.bzl b/tools/workspace/libprotobuf/repository.bzl similarity index 100% rename from tools/workspace/libprotobuf/package.bzl rename to tools/workspace/libprotobuf/repository.bzl diff --git a/tools/workspace/mosek/package.bzl b/tools/workspace/mosek/repository.bzl similarity index 97% rename from tools/workspace/mosek/package.bzl rename to tools/workspace/mosek/repository.bzl index 02f58a836ea1..c2280df616ae 100644 --- a/tools/workspace/mosek/package.bzl +++ b/tools/workspace/mosek/repository.bzl @@ -8,7 +8,7 @@ dependency. Example: WORKSPACE: - load("@drake//tools/workspace/mosek:package.bzl", "mosek_repository") + load("@drake//tools/workspace/mosek:repository.bzl", "mosek_repository") # noqa mosek_repository(name = "foo") BUILD: diff --git a/tools/workspace/net_sf_jchart2d/package.bzl b/tools/workspace/net_sf_jchart2d/repository.bzl similarity index 100% rename from tools/workspace/net_sf_jchart2d/package.bzl rename to tools/workspace/net_sf_jchart2d/repository.bzl diff --git a/tools/workspace/nlopt/package.bzl b/tools/workspace/nlopt/repository.bzl similarity index 100% rename from tools/workspace/nlopt/package.bzl rename to tools/workspace/nlopt/repository.bzl diff --git a/tools/workspace/numpy/package.bzl b/tools/workspace/numpy/repository.bzl similarity index 100% rename from tools/workspace/numpy/package.bzl rename to tools/workspace/numpy/repository.bzl diff --git a/tools/workspace/octomap/package.bzl b/tools/workspace/octomap/repository.bzl similarity index 100% rename from tools/workspace/octomap/package.bzl rename to tools/workspace/octomap/repository.bzl diff --git a/tools/workspace/optitrack_driver/package.bzl b/tools/workspace/optitrack_driver/repository.bzl similarity index 100% rename from tools/workspace/optitrack_driver/package.bzl rename to tools/workspace/optitrack_driver/repository.bzl diff --git a/tools/workspace/org_apache_xmlgraphics_commons/package.bzl b/tools/workspace/org_apache_xmlgraphics_commons/repository.bzl similarity index 100% rename from tools/workspace/org_apache_xmlgraphics_commons/package.bzl rename to tools/workspace/org_apache_xmlgraphics_commons/repository.bzl diff --git a/tools/workspace/protoc/package.bzl b/tools/workspace/protoc/repository.bzl similarity index 100% rename from tools/workspace/protoc/package.bzl rename to tools/workspace/protoc/repository.bzl diff --git a/tools/workspace/pybind11/package.bzl b/tools/workspace/pybind11/repository.bzl similarity index 100% rename from tools/workspace/pybind11/package.bzl rename to tools/workspace/pybind11/repository.bzl diff --git a/tools/workspace/pycodestyle/package.bzl b/tools/workspace/pycodestyle/repository.bzl similarity index 100% rename from tools/workspace/pycodestyle/package.bzl rename to tools/workspace/pycodestyle/repository.bzl diff --git a/tools/workspace/pycps/package.bzl b/tools/workspace/pycps/repository.bzl similarity index 100% rename from tools/workspace/pycps/package.bzl rename to tools/workspace/pycps/repository.bzl diff --git a/tools/workspace/python/package.bzl b/tools/workspace/python/repository.bzl similarity index 96% rename from tools/workspace/python/package.bzl rename to tools/workspace/python/repository.bzl index 84fc70f08ee4..3053b8950492 100644 --- a/tools/workspace/python/package.bzl +++ b/tools/workspace/python/repository.bzl @@ -7,7 +7,7 @@ makes them available to be used as a C/C++ dependency. Example: WORKSPACE: - load("@drake//tools/workspace/python:package.bzl", "python_repository") + load("@drake//tools/workspace/python:repository.bzl", "python_repository") # noqa python_repository( name = "foo", version = "2.7", diff --git a/tools/workspace/scs/package.bzl b/tools/workspace/scs/repository.bzl similarity index 100% rename from tools/workspace/scs/package.bzl rename to tools/workspace/scs/repository.bzl diff --git a/tools/workspace/sdformat/package.bzl b/tools/workspace/sdformat/repository.bzl similarity index 100% rename from tools/workspace/sdformat/package.bzl rename to tools/workspace/sdformat/repository.bzl diff --git a/tools/workspace/semantic_version/package.bzl b/tools/workspace/semantic_version/repository.bzl similarity index 100% rename from tools/workspace/semantic_version/package.bzl rename to tools/workspace/semantic_version/repository.bzl diff --git a/tools/workspace/snopt/package.bzl b/tools/workspace/snopt/repository.bzl similarity index 100% rename from tools/workspace/snopt/package.bzl rename to tools/workspace/snopt/repository.bzl diff --git a/tools/workspace/spdlog/package.bzl b/tools/workspace/spdlog/repository.bzl similarity index 100% rename from tools/workspace/spdlog/package.bzl rename to tools/workspace/spdlog/repository.bzl diff --git a/tools/workspace/spruce/package.bzl b/tools/workspace/spruce/repository.bzl similarity index 100% rename from tools/workspace/spruce/package.bzl rename to tools/workspace/spruce/repository.bzl diff --git a/tools/workspace/stx/package.bzl b/tools/workspace/stx/repository.bzl similarity index 100% rename from tools/workspace/stx/package.bzl rename to tools/workspace/stx/repository.bzl diff --git a/tools/workspace/styleguide/package.bzl b/tools/workspace/styleguide/repository.bzl similarity index 100% rename from tools/workspace/styleguide/package.bzl rename to tools/workspace/styleguide/repository.bzl diff --git a/tools/workspace/tinydir/package.bzl b/tools/workspace/tinydir/repository.bzl similarity index 100% rename from tools/workspace/tinydir/package.bzl rename to tools/workspace/tinydir/repository.bzl diff --git a/tools/workspace/tinyobjloader/package.bzl b/tools/workspace/tinyobjloader/repository.bzl similarity index 100% rename from tools/workspace/tinyobjloader/package.bzl rename to tools/workspace/tinyobjloader/repository.bzl diff --git a/tools/workspace/tinyxml/package.bzl b/tools/workspace/tinyxml/repository.bzl similarity index 100% rename from tools/workspace/tinyxml/package.bzl rename to tools/workspace/tinyxml/repository.bzl diff --git a/tools/workspace/tinyxml2/package.bzl b/tools/workspace/tinyxml2/repository.bzl similarity index 100% rename from tools/workspace/tinyxml2/package.bzl rename to tools/workspace/tinyxml2/repository.bzl diff --git a/tools/workspace/vtk/package.bzl b/tools/workspace/vtk/repository.bzl similarity index 99% rename from tools/workspace/vtk/package.bzl rename to tools/workspace/vtk/repository.bzl index ea91231e90bd..41e444558508 100644 --- a/tools/workspace/vtk/package.bzl +++ b/tools/workspace/vtk/repository.bzl @@ -8,7 +8,7 @@ unpacked. On macOS and OS X, VTK must be installed using Homebrew. Example: WORKSPACE: - load("@drake//tools/workspace/vtk:package.bzl", "vtk_repository") + load("@drake//tools/workspace/vtk:repository.bzl", "vtk_repository") vtk_repository(name = "foo") BUILD: diff --git a/tools/workspace/yaml_cpp/package.bzl b/tools/workspace/yaml_cpp/repository.bzl similarity index 100% rename from tools/workspace/yaml_cpp/package.bzl rename to tools/workspace/yaml_cpp/repository.bzl diff --git a/tools/workspace/zlib/package.bzl b/tools/workspace/zlib/repository.bzl similarity index 95% rename from tools/workspace/zlib/package.bzl rename to tools/workspace/zlib/repository.bzl index c540253cfdee..c159a674aac6 100644 --- a/tools/workspace/zlib/package.bzl +++ b/tools/workspace/zlib/repository.bzl @@ -10,7 +10,7 @@ in /usr/include and /usr/lib, respectively. Example: WORKSPACE: - load("@drake//tools/workspace/zlib:package.bzl", "zlib_repository") + load("@drake//tools/workspace/zlib:repository.bzl", "zlib_repository") zlib_repository(name = "foo") BUILD: